summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-01-05 15:07:18 +1100
committerDamien George <damien@micropython.org>2024-01-05 15:08:33 +1100
commitee226a8b4340111eee0b13e7b840948f4bb70465 (patch)
tree045b246f790d910ed296a7a203a96798146ec6fa
parent7a794d0d8ec61d37b871ee0efd14735fcfcd8b11 (diff)
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 <damien@micropython.org>
-rw-r--r--docs/library/bluetooth.rst2
-rw-r--r--docs/library/rp2.StateMachine.rst2
-rw-r--r--docs/reference/constrained.rst2
-rw-r--r--tests/basics/bytearray_byte_operations.py2
-rw-r--r--tests/extmod/vfs_fat_ilistdir_del.py2
-rw-r--r--tests/extmod/vfs_lfs_ilistdir_del.py2
-rw-r--r--tests/extmod/vfs_posix_ilistdir_del.py2
-rw-r--r--tests/import/ext/micropython.py2
-rw-r--r--tests/import/ext/sys.py2
-rw-r--r--tests/import/ext/usys.py2
10 files changed, 10 insertions, 10 deletions
diff --git a/docs/library/bluetooth.rst b/docs/library/bluetooth.rst
index 78cb4cc28..fb3c23400 100644
--- a/docs/library/bluetooth.rst
+++ b/docs/library/bluetooth.rst
@@ -312,7 +312,7 @@ Broadcaster Role (Advertiser)
in all broadcasts, and *resp_data* is send in reply to an active scan.
**Note:** if *adv_data* (or *resp_data*) is ``None``, then the data passed
- to the previous call to ``gap_advertise`` will be re-used. This allows a
+ to the previous call to ``gap_advertise`` will be reused. This allows a
broadcaster to resume advertising with just ``gap_advertise(interval_us)``.
To clear the advertising payload pass an empty ``bytes``, i.e. ``b''``.
diff --git a/docs/library/rp2.StateMachine.rst b/docs/library/rp2.StateMachine.rst
index ee16ce3c5..e8c167c09 100644
--- a/docs/library/rp2.StateMachine.rst
+++ b/docs/library/rp2.StateMachine.rst
@@ -32,7 +32,7 @@ Methods
The program is added to the instruction memory of this PIO instance. If the
instruction memory already contains this program, then its offset is
- re-used so as to save on instruction memory.
+ reused so as to save on instruction memory.
- *freq* is the frequency in Hz to run the state machine at. Defaults to
the system clock frequency.
diff --git a/docs/reference/constrained.rst b/docs/reference/constrained.rst
index 59c375159..d9a349aa6 100644
--- a/docs/reference/constrained.rst
+++ b/docs/reference/constrained.rst
@@ -211,7 +211,7 @@ two loops:
spi.readinto(buf)
# process data in buf
-The first creates a buffer on each pass whereas the second re-uses a pre-allocated
+The first creates a buffer on each pass whereas the second reuses a pre-allocated
buffer; this is both faster and more efficient in terms of memory fragmentation.
**Bytes are smaller than ints**
diff --git a/tests/basics/bytearray_byte_operations.py b/tests/basics/bytearray_byte_operations.py
index 7ce53cac5..48b08ab26 100644
--- a/tests/basics/bytearray_byte_operations.py
+++ b/tests/basics/bytearray_byte_operations.py
@@ -1,4 +1,4 @@
-# test bytearray with its re-use of byte functions
+# test bytearray with its reuse of byte functions
print(bytearray(b"hello world").find(b"ll"))
print(bytearray(b"hello\x00world").rfind(b"l"))
diff --git a/tests/extmod/vfs_fat_ilistdir_del.py b/tests/extmod/vfs_fat_ilistdir_del.py
index 055836ad7..ed3ca3df6 100644
--- a/tests/extmod/vfs_fat_ilistdir_del.py
+++ b/tests/extmod/vfs_fat_ilistdir_del.py
@@ -57,7 +57,7 @@ def test(bdev, vfs_class):
break
vfs.mkdir(dname)
- # Also create a fully drained iterator and ensure trying to re-use it
+ # Also create a fully drained iterator and ensure trying to reuse it
# throws the correct exception.
idir_emptied = vfs.ilistdir("/")
l = list(idir_emptied)
diff --git a/tests/extmod/vfs_lfs_ilistdir_del.py b/tests/extmod/vfs_lfs_ilistdir_del.py
index ff6671714..c183118fe 100644
--- a/tests/extmod/vfs_lfs_ilistdir_del.py
+++ b/tests/extmod/vfs_lfs_ilistdir_del.py
@@ -57,7 +57,7 @@ def test(bdev, vfs_class):
break
vfs.mkdir(dname)
- # Also create a fully drained iterator and ensure trying to re-use it
+ # Also create a fully drained iterator and ensure trying to reuse it
# throws the correct exception.
idir_emptied = vfs.ilistdir("/")
l = list(idir_emptied)
diff --git a/tests/extmod/vfs_posix_ilistdir_del.py b/tests/extmod/vfs_posix_ilistdir_del.py
index 8c8e6978b..11b45e619 100644
--- a/tests/extmod/vfs_posix_ilistdir_del.py
+++ b/tests/extmod/vfs_posix_ilistdir_del.py
@@ -37,7 +37,7 @@ def test(testdir):
break
vfs.mkdir(dname)
- # Also create a fully drained iterator and ensure trying to re-use it
+ # Also create a fully drained iterator and ensure trying to reuse it
# throws the correct exception.
idir_emptied = vfs.ilistdir("/")
l = list(idir_emptied)
diff --git a/tests/import/ext/micropython.py b/tests/import/ext/micropython.py
index 88c8b770e..251e1e0aa 100644
--- a/tests/import/ext/micropython.py
+++ b/tests/import/ext/micropython.py
@@ -1,2 +1,2 @@
-# micropython is always builtin and cannot be overriden by the filesystem.
+# micropython is always builtin and cannot be overridden by the filesystem.
print("ERROR: micropython from filesystem")
diff --git a/tests/import/ext/sys.py b/tests/import/ext/sys.py
index 71ee633e1..a041c407f 100644
--- a/tests/import/ext/sys.py
+++ b/tests/import/ext/sys.py
@@ -1,2 +1,2 @@
-# sys is always builtin and cannot be overriden by the filesystem.
+# sys is always builtin and cannot be overridden by the filesystem.
print("ERROR: sys from filesystem")
diff --git a/tests/import/ext/usys.py b/tests/import/ext/usys.py
index d7629a449..302d1df33 100644
--- a/tests/import/ext/usys.py
+++ b/tests/import/ext/usys.py
@@ -1,3 +1,3 @@
-# usys (and any u-prefix) is always builtin and cannot be overriden by the
+# usys (and any u-prefix) is always builtin and cannot be overridden by the
# filesystem.
print("ERROR: usys from filesystem")