summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-08 17:55:18 +0800
committerGitHub <noreply@github.com>2023-08-08 05:55:18 -0400
commit10a6e4c236b8d4d609a07b29ad5b7b4e517cd367 (patch)
tree67bdc6e014432b6edf9578829b5649eb03490c23 /lib/std
parentbf5d173bc65aea071e5ffdf593f6b8797b56816d (diff)
downloadNim-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.nim4
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