Skip to content

Commit 154785b

Browse files
Refactor doctest output line in tower_of_hanoi.py (E501 fixed)
Shortened a long line in the doctest output for clarity.
1 parent 978317c commit 154785b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

divide_and_conquer/tower_of_hanoi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def solve_hanoi(
4646
... moves_test.append((source, destination))
4747
... solve_hanoi_test(num_disks - 1, auxiliary, source, destination)
4848
>>> solve_hanoi_test(2, "S", "A", "D")
49-
>>> moves_test
49+
>>> moves_test # This line was previously too long due to the doctest content.
5050
[('S', 'A'), ('S', 'D'), ('A', 'D')]
5151
"""
5252
if num_disks == 0:

0 commit comments

Comments
 (0)