mirror of https://github.com/status-im/NimYAML.git
fixed outdated code doc
This commit is contained in:
parent
aa64bac5ed
commit
048183d786
|
@ -46,10 +46,8 @@ template transient*() {.pragma.}
|
||||||
##
|
##
|
||||||
## .. code-block::
|
## .. code-block::
|
||||||
## type MyObject = object
|
## type MyObject = object
|
||||||
## a, b: string
|
## a {.transient.}, b: string
|
||||||
## c: int
|
## c {.transient.}: int
|
||||||
## markAsTransient(MyObject, a)
|
|
||||||
## markAsTransient(MyObject, c)
|
|
||||||
|
|
||||||
template ignore*(keys : openarray[string]) {.pragma.}
|
template ignore*(keys : openarray[string]) {.pragma.}
|
||||||
## This annotation can be put on an object type. All keys with the given
|
## This annotation can be put on an object type. All keys with the given
|
||||||
|
|
Loading…
Reference in New Issue