Fix typos in comments and test code (#122846)

This commit is contained in:
Xie Yanbo 2024-08-12 12:16:41 +08:00 committed by GitHub
parent 9375b9ca3a
commit 253c6a0b2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 28 additions and 28 deletions

View file

@ -109,7 +109,7 @@ def add_baudrate_if_supported(dictionary: dict[int, int], rate: int) -> None:
try:
poll: type[select.poll] = select.poll
except AttributeError:
# this is exactly the minumum necessary to support what we
# this is exactly the minimum necessary to support what we
# do with poll objects
class MinimalPoll:
def __init__(self):
@ -613,7 +613,7 @@ def __write_changed_line(self, y, oldline, newline, px_coord):
# reuse the oldline as much as possible, but stop as soon as we
# encounter an ESCAPE, because it might be the start of an escape
# sequene
# sequence
while (
x_coord < minlen
and oldline[x_pos] == newline[x_pos]