README.md: fix typo

Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
This commit is contained in:
Paul Campbell 2016-01-09 17:53:46 +00:00
parent 271679e006
commit 749dd506ad

View file

@ -23,7 +23,11 @@ The library consits of an interface `Node` and an implementation `NodeItem`.
## Add a child node
root.addChild("child");
root.createChild("child");
Which is shorthand for:
root.addChild(new NodeItem<>("child"));
The tree now looks like: