From 749dd506ad1591f99ba609422e57fed891fb6cc4 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Jan 2016 17:53:46 +0000 Subject: [PATCH] README.md: fix typo Signed-off-by: Paul Campbell --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5b9073..77c8100 100644 --- a/README.md +++ b/README.md @@ -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: