diff --git a/yaml/dom.nim b/yaml/dom.nim index eed5e76..d0c5587 100644 --- a/yaml/dom.nim +++ b/yaml/dom.nim @@ -54,8 +54,7 @@ type mapStyle*: CollectionStyle # compiler does not like Table[YamlNode, YamlNode] - YamlDocument* = object - {.deprecated: "use YamlNode with serialization API instead".} + YamlDocument* {.deprecated: "use YamlNode with serialization API instead".} = object ## Represents a YAML document. root*: YamlNode @@ -336,4 +335,4 @@ iterator mpairs*(node: var YamlNode): ## Iterates over all key-value pairs of a mapping. *node* must be a ## *yMapping*. Values can be modified. doAssert node.kind == yMapping - for key, value in node.fields.mpairs: yield (key, value) \ No newline at end of file + for key, value in node.fields.mpairs: yield (key, value)