diff --git a/docsrc/tutorials/custom_types.rst b/docsrc/tutorials/custom_types.rst index 8f6e565..95de259 100644 --- a/docsrc/tutorials/custom_types.rst +++ b/docsrc/tutorials/custom_types.rst @@ -78,6 +78,7 @@ CSS-like format, RRGGBB, or from a mapping, where we use the following format: //Get value of a hex digit. uint hex(char c) { + import std.ascii; if(!std.ascii.isHexDigit(c)) { throw new Exception("Invalid color: " ~ value); diff --git a/docsrc/tutorials/getting_started.rst b/docsrc/tutorials/getting_started.rst index 0abdc87..7134bad 100644 --- a/docsrc/tutorials/getting_started.rst +++ b/docsrc/tutorials/getting_started.rst @@ -24,9 +24,8 @@ Download the version of DMD for your operating system and install it. .. note:: Other D compilers exist, such as - `GDC `_ and - `LDC `_. Setting up with either one of - them should be similar to DMD, but they are not yet as stable as DMD. + `GDC `_ and + `LDC `_. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Download and compile D:YAML @@ -77,7 +76,7 @@ into the file: .. code-block:: d import std.stdio; - import dyaml.all; + import yaml; void main() { diff --git a/docsrc/tutorials/yaml_syntax.rst b/docsrc/tutorials/yaml_syntax.rst index 17eeb43..315b298 100644 --- a/docsrc/tutorials/yaml_syntax.rst +++ b/docsrc/tutorials/yaml_syntax.rst @@ -257,16 +257,16 @@ Implicit tags: This table shows D types stored in *yaml.Node* default YAML tags are converted to. Some of these might change in the future (especially !!map and !!set). -====================== ================ +====================== ==================== YAML tag D type -====================== ================ +====================== ==================== !!null yaml.YAMLNull !!bool bool !!int long !!float real !!binary ubyte[] -!!timestamp datetime.SysTime -!!map, !!omap, !!pairs Node.Pair[] -!!seq, !!set Node[] +!!timestamp std.datetime.SysTime +!!map, !!omap, !!pairs yaml.Node.Pair[] +!!seq, !!set yaml.Node[] !!str string -====================== ================ +====================== ====================