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]
This commit is contained in:
Luis Lavena 2016-08-14 11:14:28 +01:00
parent 95d2d0aedb
commit e55d144413
1 changed files with 4 additions and 4 deletions

View File

@ -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"