diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-08-08 17:55:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 05:55:18 -0400 |
commit | 10a6e4c236b8d4d609a07b29ad5b7b4e517cd367 (patch) | |
tree | 67bdc6e014432b6edf9578829b5649eb03490c23 /lib/std | |
parent | bf5d173bc65aea071e5ffdf593f6b8797b56816d (diff) | |
download | Nim-10a6e4c236b8d4d609a07b29ad5b7b4e517cd367.tar.gz |
clean up `gc:arc` or `gc:orc` in docs and in error messages (#22408)
* clean up gc:arc/orc in docs * in error messages
Diffstat (limited to 'lib/std')
-rw-r--r-- | lib/std/tasks.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/tasks.nim b/lib/std/tasks.nim index 923cb2e99..6a4b2bb6d 100644 --- a/lib/std/tasks.nim +++ b/lib/std/tasks.nim @@ -111,7 +111,7 @@ template addAllNode(assignParam: NimNode, procParam: NimNode) = macro toTask*(e: typed{nkCall | nkInfix | nkPrefix | nkPostfix | nkCommand | nkCallStrLit}): Task = ## Converts the call and its arguments to `Task`. - runnableExamples("--gc:orc"): + runnableExamples: proc hello(a: int) = echo a let b = toTask hello(13) @@ -259,7 +259,7 @@ macro toTask*(e: typed{nkCall | nkInfix | nkPrefix | nkPostfix | nkCommand | nkC when defined(nimTasksDebug): echo result.repr -runnableExamples("--gc:orc"): +runnableExamples: block: var num = 0 proc hello(a: int) = inc num, a |