summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/pure/sugar.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/sugar.nim b/lib/pure/sugar.nim
index 3d9a9d42e..d2bdb0fdc 100644
--- a/lib/pure/sugar.nim
+++ b/lib/pure/sugar.nim
@@ -201,7 +201,7 @@ macro capture*(locals: varargs[typed], body: untyped): untyped {.since: (1, 1).}
   ##     for j in 7..9:
   ##       if i * j == 42:
   ##         capture i, j:
-  ##           myClosure = proc () = echo fmt"{i} * {j} == 42"
+  ##           myClosure = proc () = echo fmt"{i} * {j} = 42"
   ##   myClosure() # output: 6 * 7 == 42
   ##   let m = @[proc (s: string): string = "to " & s, proc (s: string): string = "not to " & s]
   ##   var l = m.mapIt(capture(it, proc (s: string): string = it(s)))