mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-01 19:44:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user