Skip to content

Commit a3382fe

Browse files
Jarvis Jeason JacobJarvis Jeason Jacob
authored andcommitted
Add docstring to prompt()
1 parent 25a312d commit a3382fe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

searches/binary_tree_traversal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def post_order_iter(node: TreeNode) -> None:
259259

260260

261261
def prompt(s: str = "", width=50, char="*") -> str:
262+
"""Return a prompt string padded to the specified width."""
262263
if not s:
263264
return "\n" + width * char
264265
left, extra = divmod(width - len(s) - 2, 2)

0 commit comments

Comments
 (0)