diff --git a/examples/yaml_gen/yaml_gen.d b/examples/yaml_gen/yaml_gen.d index 625816d..68eb21c 100644 --- a/examples/yaml_gen/yaml_gen.d +++ b/examples/yaml_gen/yaml_gen.d @@ -163,6 +163,7 @@ Node nodes(const bool root, Node range, const string tag, const bool set = false { while(!(totalNodes >= minNodesDocument)) { + nodes.assumeSafeAppend; nodes ~= generateNode(randomType(types)); } }