diff --git a/docs/library/array.rst b/docs/library/array.rst index 62146e3f4c..a7a3b5952e 100644 --- a/docs/library/array.rst +++ b/docs/library/array.rst @@ -75,7 +75,7 @@ Classes Returns the string representation of the array, called as ``str(a)`` or ``repr(a)``` (where ``a`` is an ``array``). Returns the string ``"array(, [])"``, where ```` is the type code letter for the array and ```` is a comma - seperated list of the elements of the array. + separated list of the elements of the array. **Note:** ``__repr__`` cannot be called directly (``a.__repr__()`` fails) and is not present in ``__dict__``, however ``str(a)`` and ``repr(a)`` both work. diff --git a/py/objarray.c b/py/objarray.c index b82992aa3f..39d3ab8b9b 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -767,7 +767,7 @@ STATIC const mp_rom_map_elem_t bytearray_locals_dict_table[] = { #endif }; -STATIC MP_DEFINE_CONST_DICT(bytearray_locals_dict, bytearray_locals_dict_table); +MP_DEFINE_CONST_DICT(bytearray_locals_dict, bytearray_locals_dict_table); #endif