Skip to content

Commit b8e7a4c

Browse files
Fix typo in knight_tour.py (#11173)
1 parent 3999abf commit b8e7a4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backtracking/knight_tour.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def open_knight_tour(n: int) -> list[list[int]]:
7979
>>> open_knight_tour(2)
8080
Traceback (most recent call last):
8181
...
82-
ValueError: Open Kight Tour cannot be performed on a board of size 2
82+
ValueError: Open Knight Tour cannot be performed on a board of size 2
8383
"""
8484

8585
board = [[0 for i in range(n)] for j in range(n)]
@@ -91,7 +91,7 @@ def open_knight_tour(n: int) -> list[list[int]]:
9191
return board
9292
board[i][j] = 0
9393

94-
msg = f"Open Kight Tour cannot be performed on a board of size {n}"
94+
msg = f"Open Knight Tour cannot be performed on a board of size {n}"
9595
raise ValueError(msg)
9696

9797

0 commit comments

Comments
 (0)