aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/docs/tutorials/getting_started.md
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-05-26 10:08:50 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-05-27 15:33:38 -0400
commit8bd1faf2f33e455831b80df4493195848fd03b99 (patch)
treeb8ef070f1d4b1905524e4664f0c567afd0fab97f /src/ext_depends/D-YAML/docs/tutorials/getting_started.md
parenthousekeeping (diff)
sub dependency update, updates D-YAML
Diffstat (limited to 'src/ext_depends/D-YAML/docs/tutorials/getting_started.md')
-rw-r--r--src/ext_depends/D-YAML/docs/tutorials/getting_started.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ext_depends/D-YAML/docs/tutorials/getting_started.md b/src/ext_depends/D-YAML/docs/tutorials/getting_started.md
index 58cf191..3947e37 100644
--- a/src/ext_depends/D-YAML/docs/tutorials/getting_started.md
+++ b/src/ext_depends/D-YAML/docs/tutorials/getting_started.md
@@ -58,7 +58,7 @@ void main()
writeln("The answer is ", root["Answer"].as!int);
//Dump the loaded document to output.yaml.
- dumper(File("output.yaml", "w").lockingTextWriter).dump(root);
+ dumper.dump(File("output.yaml", "w").lockingTextWriter, root);
}
```
@@ -100,8 +100,8 @@ will try to convert it, throwing *YAMLException* if not possible.
Finally we dump the document we just read to `output.yaml` with the
*Dumper.dump()* method. *Dumper* is a struct used to dump YAML
-documents. *dumper()* accepts a range to write the document to.
-The *dump()* method writes one or more documents to the range,
+documents. *dumper()* returns a *Dumper* with the default setting.
+The *dump()* method writes one or more documents to a range,
throwing *YAMLException* if it could not be written to.
D:YAML tries to preserve style information in documents so e.g. `[Hello,