promote std prefix in docs (#17128)
This commit is contained in:
parent
778f124af0
commit
69a78c9183
9 changed files with 41 additions and 41 deletions
|
|
@ -91,7 +91,7 @@ but in the macro body ``arg`` is just like a normal parameter of type
|
|||
|
||||
.. code-block:: nim
|
||||
|
||||
import macros
|
||||
import std/macros
|
||||
|
||||
macro myMacro(arg: static[int]): untyped =
|
||||
echo arg # just an int (7), not ``NimNode``
|
||||
|
|
@ -193,7 +193,7 @@ them into the tree.
|
|||
.. code-block:: nim
|
||||
:test: "nim c $1"
|
||||
|
||||
import macros
|
||||
import std/macros
|
||||
|
||||
type
|
||||
MyType = object
|
||||
|
|
@ -232,7 +232,7 @@ correct argument should look like.
|
|||
.. code-block:: nim
|
||||
:test: "nim c $1"
|
||||
|
||||
import macros
|
||||
import std/macros
|
||||
|
||||
macro myAssert(arg: untyped): untyped =
|
||||
echo arg.treeRepr
|
||||
|
|
@ -258,7 +258,7 @@ written.
|
|||
.. code-block:: nim
|
||||
:test: "nim c $1"
|
||||
|
||||
import macros
|
||||
import std/macros
|
||||
|
||||
macro myAssert(arg: untyped): untyped =
|
||||
# all node kind identifiers are prefixed with "nnk"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue