Skip to content

Commit

Permalink
Improve docstring for _is_balanced function
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed Mar 1, 2020
1 parent a2ea09e commit 5ff28f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binarytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


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

0 comments on commit 5ff28f7

Please sign in to comment.