From e55d1444138c2ed7831512d10fd3d79682999e55 Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sun, 14 Aug 2016 11:14:28 +0100 Subject: [PATCH] doc(Tree): adjust documentation for correct usage Code samples embedded into `Tree` documentation weren't accurate, so this corrects them to be up-to-date on usage. [skip ci] --- src/radix/tree.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/radix/tree.cr b/src/radix/tree.cr index b43ce29..5a0c736 100644 --- a/src/radix/tree.cr +++ b/src/radix/tree.cr @@ -45,7 +45,7 @@ module Radix # defined placeholder. # # ``` - # tree = Tree.new + # tree = Tree(Symbol).new # # # / (:root) # tree.add "/", :root @@ -64,7 +64,7 @@ module Radix # segments of the given *path*. # # ``` - # tree = Tree.new + # tree = Tree(Symbol).new # # # / (:root) # tree.add "/", :root @@ -84,7 +84,7 @@ module Radix # lower priority against other nodes. # # ``` - # tree = Tree.new + # tree = Tree(Symbol).new # # # / (:root) # tree.add "/", :root @@ -208,7 +208,7 @@ module Radix # endpoint is found (or not). # # ``` - # tree = Tree.new + # tree = Tree(Symbol).new # tree.add "/about", :about # # result = tree.find "/products"