mirror of
https://gitea.invidious.io/iv-org/shard-radix.git
synced 2024-08-15 00:43:21 +00:00
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:
parent
95d2d0aedb
commit
e55d144413
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue