summary refs log tree commit diff stats
path: root/doc/spawn.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/spawn.txt')
-rw-r--r--doc/spawn.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/spawn.txt b/doc/spawn.txt
index ab667ff48..c437e8aa3 100644
--- a/doc/spawn.txt
+++ b/doc/spawn.txt
@@ -29,7 +29,7 @@ the passed expression on the thread pool and returns a `data flow variable`:idx:
 variables at the same time:
 
 .. code-block:: nim
-  import threadpool, ...
+  import std/threadpool, ...
 
   # wait until 2 out of 3 servers received the update:
   proc main =
@@ -56,7 +56,7 @@ Example:
 
 .. code-block:: nim
   # Compute PI in an inefficient way
-  import strutils, math, threadpool
+  import std/[strutils, math, threadpool]
 
   proc term(k: float): float = 4 * math.pow(-1, k) / (2*k + 1)