Skip to content

Commit ee226a8

Browse files
committed
all: Fix "reuse" and "overridden" spelling mistakes.
Codespell doesn't pick up "re-used" or "re-uses", and ignores the tests/ directory, so fix these manually. Signed-off-by: Damien George <[email protected]>
1 parent 7a794d0 commit ee226a8

10 files changed

+10
-10
lines changed

docs/library/bluetooth.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Broadcaster Role (Advertiser)
312312
in all broadcasts, and *resp_data* is send in reply to an active scan.
313313

314314
**Note:** if *adv_data* (or *resp_data*) is ``None``, then the data passed
315-
to the previous call to ``gap_advertise`` will be re-used. This allows a
315+
to the previous call to ``gap_advertise`` will be reused. This allows a
316316
broadcaster to resume advertising with just ``gap_advertise(interval_us)``.
317317
To clear the advertising payload pass an empty ``bytes``, i.e. ``b''``.
318318

docs/library/rp2.StateMachine.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Methods
3232

3333
The program is added to the instruction memory of this PIO instance. If the
3434
instruction memory already contains this program, then its offset is
35-
re-used so as to save on instruction memory.
35+
reused so as to save on instruction memory.
3636

3737
- *freq* is the frequency in Hz to run the state machine at. Defaults to
3838
the system clock frequency.

docs/reference/constrained.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ two loops:
211211
spi.readinto(buf)
212212
# process data in buf
213213
214-
The first creates a buffer on each pass whereas the second re-uses a pre-allocated
214+
The first creates a buffer on each pass whereas the second reuses a pre-allocated
215215
buffer; this is both faster and more efficient in terms of memory fragmentation.
216216

217217
**Bytes are smaller than ints**

tests/basics/bytearray_byte_operations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# test bytearray with its re-use of byte functions
1+
# test bytearray with its reuse of byte functions
22

33
print(bytearray(b"hello world").find(b"ll"))
44
print(bytearray(b"hello\x00world").rfind(b"l"))

tests/extmod/vfs_fat_ilistdir_del.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test(bdev, vfs_class):
5757
break
5858
vfs.mkdir(dname)
5959

60-
# Also create a fully drained iterator and ensure trying to re-use it
60+
# Also create a fully drained iterator and ensure trying to reuse it
6161
# throws the correct exception.
6262
idir_emptied = vfs.ilistdir("/")
6363
l = list(idir_emptied)

tests/extmod/vfs_lfs_ilistdir_del.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test(bdev, vfs_class):
5757
break
5858
vfs.mkdir(dname)
5959

60-
# Also create a fully drained iterator and ensure trying to re-use it
60+
# Also create a fully drained iterator and ensure trying to reuse it
6161
# throws the correct exception.
6262
idir_emptied = vfs.ilistdir("/")
6363
l = list(idir_emptied)

tests/extmod/vfs_posix_ilistdir_del.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test(testdir):
3737
break
3838
vfs.mkdir(dname)
3939

40-
# Also create a fully drained iterator and ensure trying to re-use it
40+
# Also create a fully drained iterator and ensure trying to reuse it
4141
# throws the correct exception.
4242
idir_emptied = vfs.ilistdir("/")
4343
l = list(idir_emptied)

tests/import/ext/micropython.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# micropython is always builtin and cannot be overriden by the filesystem.
1+
# micropython is always builtin and cannot be overridden by the filesystem.
22
print("ERROR: micropython from filesystem")

tests/import/ext/sys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# sys is always builtin and cannot be overriden by the filesystem.
1+
# sys is always builtin and cannot be overridden by the filesystem.
22
print("ERROR: sys from filesystem")

tests/import/ext/usys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# usys (and any u-prefix) is always builtin and cannot be overriden by the
1+
# usys (and any u-prefix) is always builtin and cannot be overridden by the
22
# filesystem.
33
print("ERROR: usys from filesystem")

0 commit comments

Comments
 (0)