summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-07-31 20:27:58 +0200
committerGitHub <noreply@github.com>2020-07-31 20:27:58 +0200
commit6b88cd0d42cac8059cb4ead691d20c21ed445a12 (patch)
tree18aed53f9799015b2e97dfcb0208665da45c680d
parent4bf8d38248f40cc0bf5323843a9ea38c5bcc20a8 (diff)
downloadNim-6b88cd0d42cac8059cb4ead691d20c21ed445a12.tar.gz
Revert "Small typo (#15132)" (#15134)
This reverts commit 4bf8d38248f40cc0bf5323843a9ea38c5bcc20a8.
-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)))