Minor fixes in examples and the 'custom types' tutorial.

This commit is contained in:
Ferdinand Majerech 2014-08-01 17:09:05 +02:00
parent 278b60e896
commit 6ccda33467
7 changed files with 38 additions and 36 deletions

View file

@ -202,6 +202,7 @@ Add this to your code to add implicit resolution of ``!color``.
//code from the previous example...
auto resolver = new Resolver;
import std.regex;
resolver.addImplicitResolver("!color", std.regex.regex("[0-9a-fA-F]{6}"),
"0123456789abcdefABCDEF");
@ -302,6 +303,7 @@ such as the color being white.
representer.addRepresenter!Color(&representColor);
auto resolver = new Resolver;
import std.regex;
resolver.addImplicitResolver("!color", std.regex.regex("[0-9a-fA-F]{6}"),
"0123456789abcdefABCDEF");