From 048183d7866c849295a81489c3b912fcfbdff6ca Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Fri, 26 Jun 2020 23:40:14 +0200 Subject: [PATCH] fixed outdated code doc --- yaml/annotations.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yaml/annotations.nim b/yaml/annotations.nim index 490775c..dc9632b 100644 --- a/yaml/annotations.nim +++ b/yaml/annotations.nim @@ -46,10 +46,8 @@ template transient*() {.pragma.} ## ## .. code-block:: ## type MyObject = object - ## a, b: string - ## c: int - ## markAsTransient(MyObject, a) - ## markAsTransient(MyObject, c) + ## a {.transient.}, b: string + ## c {.transient.}: int template ignore*(keys : openarray[string]) {.pragma.} ## This annotation can be put on an object type. All keys with the given