From 1f508bc3d2705ea615e3e346d75aed4237f21c27 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Jan 2016 17:55:24 +0000 Subject: [PATCH] README.md: fix typo Signed-off-by: Paul Campbell --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77c8100..b80d2ec 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,12 @@ The library consits of an interface `Node` and an implementation `NodeItem`. ## Add a child node - root.createChild("child"); + Node child = root.createChild("child"); Which is shorthand for: - root.addChild(new NodeItem<>("child")); + Node child = new NodeItem<>("child"); + root.addChild(child); The tree now looks like: