mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-32746: Fix multiple typos (GH-5144)
Fix typos found by codespell in docs, docstrings, and comments.
This commit is contained in:
parent
589c718a8e
commit
c3d9508ff2
22 changed files with 34 additions and 35 deletions
|
@ -1500,7 +1500,7 @@ class Knights:
|
|||
succs[final].remove(corner)
|
||||
add_to_successors(this)
|
||||
|
||||
# Generate moves 3 thru m*n-1.
|
||||
# Generate moves 3 through m*n-1.
|
||||
def advance(len=len):
|
||||
# If some successor has only one exit, must take it.
|
||||
# Else favor successors with fewer exits.
|
||||
|
@ -1522,7 +1522,7 @@ class Knights:
|
|||
yield i
|
||||
add_to_successors(i)
|
||||
|
||||
# Generate moves 3 thru m*n-1. Alternative version using a
|
||||
# Generate moves 3 through m*n-1. Alternative version using a
|
||||
# stronger (but more expensive) heuristic to order successors.
|
||||
# Since the # of backtracking levels is m*n, a poor move early on
|
||||
# can take eons to undo. Smallest square board for which this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue