clean up gc:arc or gc:orc in docs and in error messages (#22408)

* clean up gc:arc/orc in docs

* in error messages

(cherry picked from commit 10a6e4c236)
This commit is contained in:
ringabout
2023-08-08 17:55:18 +08:00
committed by narimiran
parent c1745b5924
commit 09109c55c9
6 changed files with 14 additions and 14 deletions

View File

@@ -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