Skip to content

Commit 5ff28f7

Browse files
committed
Improve docstring for _is_balanced function
1 parent a2ea09e commit 5ff28f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binarytree/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
def _is_balanced(root):
21-
"""Return the height if the binary tree is balanced, -1 otherwise.
21+
"""Return the tree height + 1 if balanced, -1 otherwise.
2222
2323
:param root: Root node of the binary tree.
2424
:type root: binarytree.Node | None

0 commit comments

Comments
 (0)