Skip to content

Commit 1e9a292

Browse files
committed
Updated docstrings to match style and squashed commits from that process (mybad)
1 parent da7f4e8 commit 1e9a292

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/binarytree.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ end
151151
"""
152152
BinaryTrees.minnode(tree)
153153
154-
Find the `node` with the smallest `key` in the `tree`.
154+
Find the node with the smallest key in the `tree`.
155155
156156
BinaryTrees.minnode(node)
157157
158-
Find the `node` with the smallest `key` in the subtree rooted at `node`.
158+
Find the node with the smallest key in the subtree rooted at `node`.
159159
If `nothing` is provided, `nothing` is returned.
160160
"""
161161
minnode(tree::BinaryTree) = minnode(root(tree))
@@ -170,11 +170,11 @@ minnode(node::Nothing) = nothing
170170
"""
171171
BinaryTrees.maxnode(tree)
172172
173-
Find the `node` with the maximum `key` in the `tree`.
173+
Find the node with the maximum key in the `tree`.
174174
175175
BinaryTrees.maxnode(node)
176176
177-
Find the `node` with the maximum `key` in the subtree rooted at `node`.
177+
Find the node with the maximum key in the subtree rooted at `node`.
178178
If `nothing` is provided, `nothing` is returned.
179179
"""
180180
maxnode(tree::BinaryTree) = maxnode(root(tree))
@@ -189,10 +189,10 @@ maxnode(node::Nothing) = nothing
189189
"""
190190
BinaryTrees.prevnext(tree, k)
191191
192-
Returns a `tuple` of each `node` immediately before
193-
and after the `node` with `key`, `k` within `tree`.
192+
Returns a tuple of each node immediately before
193+
and after the `tree` node with key `k`.
194194
195-
If an adjacent `node` does not exist, `nothing` is returned in its place.
195+
If an adjacent node does not exist, `nothing` is returned in its place.
196196
If `k` is `nothing`, returns `(nothing, nothing)`.
197197
"""
198198
function prevnext(tree::BinaryTree, k)

0 commit comments

Comments
 (0)