Skip to content

Commit cf490a7

Browse files
committed
all: Fix various spelling mistakes found by codespell 2.2.6.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 9d5d2e8 commit cf490a7

File tree

20 files changed

+22
-22
lines changed

20 files changed

+22
-22
lines changed

docs/library/espnow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ after reboot/reset). This reduces the reliability of receiving ESP-NOW messages
287287

288288
.. method:: ESPNow.irecv([timeout_ms])
289289

290-
Works like `ESPNow.recv()` but will re-use internal bytearrays to store the
290+
Works like `ESPNow.recv()` but will reuse internal bytearrays to store the
291291
return values: ``[mac, msg]``, so that no new memory is allocated on each
292292
call.
293293

docs/library/wm8960.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ controlling its operation:
251251

252252
.. method:: WM8960.expand_3d(level)
253253

254-
Enable Stereo 3D exansion. *level* is a number between 0 and 15.
254+
Enable Stereo 3D expansion. *level* is a number between 0 and 15.
255255
A value of 0 disables the expansion.
256256

257257
.. method:: WM8960.mono(active)

docs/reference/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Glossary
3232

3333
callee-owned tuple
3434
This is a MicroPython-specific construct where, for efficiency
35-
reasons, some built-in functions or methods may re-use the same
35+
reasons, some built-in functions or methods may reuse the same
3636
underlying tuple object to return data. This avoids having to allocate
3737
a new tuple for every call, and reduces heap fragmentation. Programs
3838
should not hold references to callee-owned tuples and instead only

examples/hwapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This directory shows the best practices for using MicroPython hardware API
33
across various boards, with the aim to enable writing portable applications,
44
which would work from a board to board, from a system to another systems.
55
This is inherently a hard problem, because hardware is different from one
6-
board type to another, and even from examplar of board to another. For
6+
board type to another, and even from exemplar of board to another. For
77
example, if your app requires an external LED, one user may connect it
88
to one GPIO pin, while another user may find it much more convenient to
99
use another pin. This of course applies to relays, buzzers, sensors, etc.

extmod/modbluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ STATIC int bluetooth_gatts_register_service(mp_obj_t uuid_in, mp_obj_t character
504504
// How many descriptors in the flattened list per characteristic.
505505
uint8_t *num_descriptors = m_new(uint8_t, len);
506506

507-
// Inititally allocate enough room for the number of characteristics.
507+
// Initially allocate enough room for the number of characteristics.
508508
// Will be grown to accommodate descriptors as necessary.
509509
*num_handles = len;
510510
*handles = m_new(uint16_t, *num_handles);

extmod/nimble/modbluetooth_nimble.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ int mp_bluetooth_l2cap_recvinto(uint16_t conn_handle, uint16_t cid, uint8_t *buf
18561856
// re-enable receiving yet (as we need to complete the rest of IRQ handler first).
18571857
if (!chan->irq_in_progress) {
18581858
// We've already given the channel a new mbuf in l2cap_channel_event above, so
1859-
// re-use that mbuf in the call to ble_l2cap_recv_ready. This will just
1859+
// reuse that mbuf in the call to ble_l2cap_recv_ready. This will just
18601860
// give the channel more credits.
18611861
struct os_mbuf *sdu_rx = chan->chan->coc_rx.sdu;
18621862
assert(sdu_rx);

ports/cc3200/application.lds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ SECTIONS
8383
} > SRAM
8484

8585
/* place here functions that are only called during boot up, */
86-
/* that way, we can re-use this area for the MicroPython heap */
86+
/* that way, we can reuse this area for the MicroPython heap */
8787
.boot :
8888
{
8989
. = ALIGN(8);

ports/cc3200/fatfs/src/drivers/sd_diskio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ DRESULT sd_disk_read (BYTE* pBuffer, DWORD ulSectorNumber, UINT SectorCount) {
363363

364364
//*****************************************************************************
365365
//
366-
//! Wrties sector(s) to the disk drive.
366+
//! Writes sector(s) to the disk drive.
367367
//!
368368
//!
369369
//! This function writes specified number of sectors to the drive

ports/nrf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ SRC_QSTR += $(SRC_C) $(SRC_SHARED_C) $(DRIVERS_SRC_C) $(SRC_BOARD_MODULES)
536536
# SRC_QSTR
537537
SRC_QSTR_AUTO_DEPS +=
538538

539-
# Making OBJ use an order-only depenedency on the generated pins.h file
539+
# Making OBJ use an order-only dependency on the generated pins.h file
540540
# has the side effect of making the pins.h file before we actually compile
541541
# any of the objects. The normal dependency generation will deal with the
542542
# case when pins.h is modified. But when it doesn't exist, we don't know

ports/nrf/drivers/bluetooth/ble_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ static void sd_evt_handler(uint32_t evt_id) {
942942
break;
943943
}
944944
#if MICROPY_HW_USB_CDC
945-
// Farward SOC events to USB CDC driver.
945+
// Forward SOC events to USB CDC driver.
946946
usb_cdc_sd_event_handler(evt_id);
947947
#endif
948948
}

0 commit comments

Comments
 (0)