diff options
author | Damien George <damien@micropython.org> | 2023-10-03 11:24:50 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-10-03 11:24:50 +1100 |
commit | cf490a70917a1b2d38ba9b58e763e0837d0f7ca7 (patch) | |
tree | fd460c9323dd46b4466193fc56dc319cbf717c77 /py | |
parent | 9d5d2e8cf71321b4ba41bad127bf0ea0ff24ccbf (diff) |
all: Fix various spelling mistakes found by codespell 2.2.6.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r-- | py/formatfloat.c | 2 | ||||
-rw-r--r-- | py/mkrules.mk | 2 | ||||
-rw-r--r-- | py/mpconfig.h | 6 | ||||
-rw-r--r-- | py/obj.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/py/formatfloat.c b/py/formatfloat.c index 050d3a9df..7cd471018 100644 --- a/py/formatfloat.c +++ b/py/formatfloat.c @@ -230,7 +230,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch } } else { // Build positive exponent. - // We don't modify f at this point to avoid innaccuracies from + // We don't modify f at this point to avoid inaccuracies from // scaling it. Instead, we find the product of powers of 10 // that is not greater than it, and use that to start the // mantissa. diff --git a/py/mkrules.mk b/py/mkrules.mk index ec36346b8..421e638c2 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -22,7 +22,7 @@ endif # QSTR generation uses the same CFLAGS, with these modifications. QSTR_GEN_FLAGS = -DNO_QSTR -# Note: := to force evalulation immediately. +# Note: := to force evaluation immediately. QSTR_GEN_CFLAGS := $(CFLAGS) QSTR_GEN_CFLAGS += $(QSTR_GEN_FLAGS) QSTR_GEN_CXXFLAGS := $(CXXFLAGS) diff --git a/py/mpconfig.h b/py/mpconfig.h index 433d6e50d..9a7eb1b15 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1136,7 +1136,7 @@ typedef double mp_float_t; #define MICROPY_PY_BUILTINS_RANGE_BINOP (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING) #endif -// Support for callling next() with second argument +// Support for calling next() with second argument #ifndef MICROPY_PY_BUILTINS_NEXT2 #define MICROPY_PY_BUILTINS_NEXT2 (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING) #endif @@ -1155,13 +1155,13 @@ typedef double mp_float_t; #define MICROPY_PY_ALL_SPECIAL_METHODS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) #endif -// Whether to support all inplace arithmetic operarion methods +// Whether to support all inplace arithmetic operation methods // (__imul__, etc.) #ifndef MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS #define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING) #endif -// Whether to support reverse arithmetic operarion methods +// Whether to support reverse arithmetic operation methods // (__radd__, etc.). Additionally gated by // MICROPY_PY_ALL_SPECIAL_METHODS. #ifndef MICROPY_PY_REVERSE_SPECIAL_METHODS @@ -286,7 +286,7 @@ mp_obj_t mp_obj_equal_not_equal(mp_binary_op_t op, mp_obj_t o1, mp_obj_t o2) { o2 = temp; } - // equality not implemented, so fall back to pointer conparison + // equality not implemented, so fall back to pointer comparison return (o1 == o2) ? local_true : local_false; } |