diff options
author | flywind <xzsflywind@gmail.com> | 2021-02-21 21:53:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 19:53:28 -0800 |
commit | 455690157250e9108819a3cb32a574da48d0f9c9 (patch) | |
tree | 9f4300fb63fefea8818122d43b7cbf4ed57e8ee7 /lib/std/effecttraits.nim | |
parent | 4f10dde64a504d982ef0e1d46e42f506a9a88a1b (diff) | |
download | Nim-455690157250e9108819a3cb32a574da48d0f9c9.tar.gz |
use single backtick (#17141)
Diffstat (limited to 'lib/std/effecttraits.nim')
-rw-r--r-- | lib/std/effecttraits.nim | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/std/effecttraits.nim b/lib/std/effecttraits.nim index 0f0a24492..358280db0 100644 --- a/lib/std/effecttraits.nim +++ b/lib/std/effecttraits.nim @@ -12,7 +12,7 @@ ## **Since**: Version 1.4. ## ## One can test for the existance of this standard module -## via ``defined(nimHasEffectTraitsModule)``. +## via `defined(nimHasEffectTraitsModule)`. import macros @@ -22,33 +22,33 @@ proc isGcSafeImpl(n: NimNode): bool = discard "see compiler/vmops.nim" proc hasNoSideEffectsImpl(n: NimNode): bool = discard "see compiler/vmops.nim" proc getRaisesList*(fn: NimNode): NimNode = - ## Extracts the ``.raises`` list of the func/proc/etc ``fn``. - ## ``fn`` has to be a resolved symbol of kind ``nnkSym``. This - ## implies that the macro that calls this proc should accept ``typed`` - ## arguments and not ``untyped`` arguments. + ## Extracts the `.raises` list of the func/proc/etc `fn`. + ## `fn` has to be a resolved symbol of kind `nnkSym`. This + ## implies that the macro that calls this proc should accept `typed` + ## arguments and not `untyped` arguments. expectKind fn, nnkSym result = getRaisesListImpl(fn) proc getTagsList*(fn: NimNode): NimNode = - ## Extracts the ``.tags`` list of the func/proc/etc ``fn``. - ## ``fn`` has to be a resolved symbol of kind ``nnkSym``. This - ## implies that the macro that calls this proc should accept ``typed`` - ## arguments and not ``untyped`` arguments. + ## Extracts the `.tags` list of the func/proc/etc `fn`. + ## `fn` has to be a resolved symbol of kind `nnkSym`. This + ## implies that the macro that calls this proc should accept `typed` + ## arguments and not `untyped` arguments. expectKind fn, nnkSym result = getTagsListImpl(fn) proc isGcSafe*(fn: NimNode): bool = - ## Return true if the func/proc/etc ``fn`` is `gcsafe`. - ## ``fn`` has to be a resolved symbol of kind ``nnkSym``. This - ## implies that the macro that calls this proc should accept ``typed`` - ## arguments and not ``untyped`` arguments. + ## Return true if the func/proc/etc `fn` is `gcsafe`. + ## `fn` has to be a resolved symbol of kind `nnkSym`. This + ## implies that the macro that calls this proc should accept `typed` + ## arguments and not `untyped` arguments. expectKind fn, nnkSym result = isGcSafeImpl(fn) proc hasNoSideEffects*(fn: NimNode): bool = - ## Return true if the func/proc/etc ``fn`` has `noSideEffect`. - ## ``fn`` has to be a resolved symbol of kind ``nnkSym``. This - ## implies that the macro that calls this proc should accept ``typed`` - ## arguments and not ``untyped`` arguments. + ## Return true if the func/proc/etc `fn` has `noSideEffect`. + ## `fn` has to be a resolved symbol of kind `nnkSym`. This + ## implies that the macro that calls this proc should accept `typed` + ## arguments and not `untyped` arguments. expectKind fn, nnkSym result = hasNoSideEffectsImpl(fn) |