all: Fix spelling mistakes based on codespell check.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-03-08 14:10:02 +11:00
parent e160fe7bc6
commit b1229efbd1
191 changed files with 282 additions and 282 deletions

View File

@@ -1,4 +1,4 @@
# test PEP 526, varible annotations
# test PEP 526, variable annotations
x: int
print("x" in globals())

View File

@@ -1,4 +1,4 @@
# to test arbitrariy precision integers
# to test arbitrary precision integers
x = 1000000000000000000000000000000
xn = -1000000000000000000000000000000

View File

@@ -57,7 +57,7 @@ try:
except:
print("Unknown type")
# Initially repitition counters were supported only for strings,
# Initially repetition counters were supported only for strings,
# but later were implemented for all.
print(struct.unpack("<3B2h", b"foo\x12\x34\xff\xff"))
print(struct.pack("<3B", 1, 2, 3))

View File

@@ -30,7 +30,7 @@ def f():
return (i, j)
print(f())
# multiple for loops within nested withs
# multiple for loops within nested with's
def f():
with CtxMgr(1):
for i in [1, 2]:
@@ -41,7 +41,7 @@ def f():
return (i, j, k, l)
print(f())
# multiple for loops that are optimised, and nested withs
# multiple for loops that are optimised, and nested with's
def f():
with CtxMgr(1):
for i in range(1, 3):