Skip to content

Commit 31ac410

Browse files
mcauserdpgeorge
authored andcommitted
docs: Fix some spelling mistakes.
1 parent 6e776a6 commit 31ac410

12 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs/develop/cmodules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This simple module named ``cexample`` provides a single function
9191
``cexample.add_ints(a, b)`` which adds the two integer args together and returns
9292
the result. It can be found in the MicroPython source tree
9393
`in the examples directory <https://github.com/micropython/micropython/tree/master/examples/usercmodule/cexample>`_
94-
and has a source file and a Makefile fragment with content as descibed above::
94+
and has a source file and a Makefile fragment with content as described above::
9595

9696
micropython/
9797
└──examples/

docs/esp32/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The :mod:`esp32` module::
5858
import esp32
5959

6060
esp32.hall_sensor() # read the internal hall sensor
61-
esp32.raw_temperature() # read the internal temperature of the MCU, in Farenheit
61+
esp32.raw_temperature() # read the internal temperature of the MCU, in Fahrenheit
6262
esp32.ULP() # access to the Ultra-Low-Power Co-processor
6363

6464
Note that the temperature sensor in the ESP32 will typically read higher than

docs/esp8266/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The :mod:`network` module::
5858
wlan.scan() # scan for access points
5959
wlan.isconnected() # check if the station is connected to an AP
6060
wlan.connect('essid', 'password') # connect to an AP
61-
wlan.config('mac') # get the interface's MAC adddress
61+
wlan.config('mac') # get the interface's MAC address
6262
wlan.ifconfig() # get the interface's IP/netmask/gw/DNS addresses
6363

6464
ap = network.WLAN(network.AP_IF) # create access-point interface

docs/library/esp32.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ used to transmit or receive many other types of digital signals::
162162
The input to the RMT module is an 80MHz clock (in the future it may be able to
163163
configure the input clock but, for now, it's fixed). ``clock_div`` *divides*
164164
the clock input which determines the resolution of the RMT channel. The
165-
numbers specificed in ``write_pulses`` are multiplied by the resolution to
165+
numbers specified in ``write_pulses`` are multiplied by the resolution to
166166
define the pulses.
167167

168168
``clock_div`` is an 8-bit divider (0-255) and each pulse can be defined by

docs/library/machine.Timer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the most flexible and heterogeneous kind of hardware in MCUs and SoCs,
99
differently greatly from a model to a model. MicroPython's Timer class
1010
defines a baseline operation of executing a callback with a given period
1111
(or once after some delay), and allow specific boards to define more
12-
non-standard behavior (which thus won't be portable to other boards).
12+
non-standard behaviour (which thus won't be portable to other boards).
1313

1414
See discussion of :ref:`important constraints <machine_callbacks>` on
1515
Timer callbacks.

docs/library/machine.TimerWiPy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ the most flexible and heterogeneous kind of hardware in MCUs and SoCs,
1616
differently greatly from a model to a model. MicroPython's Timer class
1717
defines a baseline operation of executing a callback with a given period
1818
(or once after some delay), and allow specific boards to define more
19-
non-standard behavior (which thus won't be portable to other boards).
19+
non-standard behaviour (which thus won't be portable to other boards).
2020

2121
See discussion of :ref:`important constraints <machine_callbacks>` on
2222
Timer callbacks.
@@ -115,7 +115,7 @@ Methods
115115

116116
.. method:: timerchannel.irq(*, trigger, priority=1, handler=None)
117117

118-
The behavior of this callback is heavily dependent on the operating
118+
The behaviour of this callback is heavily dependent on the operating
119119
mode of the timer channel:
120120

121121
- If mode is ``TimerWiPy.PERIODIC`` the callback is executed periodically

docs/library/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ parameter should be `id`.
5555
Activate ("up") or deactivate ("down") the network interface, if
5656
a boolean argument is passed. Otherwise, query current state if
5757
no argument is provided. Most other methods require an active
58-
interface (behavior of calling them on inactive interface is
58+
interface (behaviour of calling them on inactive interface is
5959
undefined).
6060

6161
.. method:: AbstractNIC.connect([service_id, key=None, *, ...])

docs/library/uctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Module contents
245245

246246
.. data:: VOID
247247

248-
``VOID`` is an alias for ``UINT8``, and is provided to conviniently define
248+
``VOID`` is an alias for ``UINT8``, and is provided to conveniently define
249249
C's void pointers: ``(uctypes.PTR, uctypes.VOID)``.
250250

251251
.. data:: PTR

docs/library/uio.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Conceptual hierarchy
1818
Conceptual hierarchy of stream base classes is simplified in MicroPython,
1919
as described in this section.
2020

21-
(Abstract) base stream classes, which serve as a foundation for behavior
21+
(Abstract) base stream classes, which serve as a foundation for behaviour
2222
of all the concrete classes, adhere to few dichotomies (pair-wise
2323
classifications) in CPython. In MicroPython, they are somewhat simplified
2424
and made implicit to achieve higher efficiencies and save resources.
@@ -41,15 +41,15 @@ more concise and efficient programs - something which is highly desirable
4141
for MicroPython. So, while MicroPython doesn't support buffered streams,
4242
it still provides for no-short-operations streams. Whether there will
4343
be short operations or not depends on each particular class' needs, but
44-
developers are strongly advised to favor no-short-operations behavior
44+
developers are strongly advised to favour no-short-operations behaviour
4545
for the reasons stated above. For example, MicroPython sockets are
4646
guaranteed to avoid short read/writes. Actually, at this time, there is
4747
no example of a short-operations stream class in the core, and one would
4848
be a port-specific class, where such a need is governed by hardware
4949
peculiarities.
5050

51-
The no-short-operations behavior gets tricky in case of non-blocking
52-
streams, blocking vs non-blocking behavior being another CPython dichotomy,
51+
The no-short-operations behaviour gets tricky in case of non-blocking
52+
streams, blocking vs non-blocking behaviour being another CPython dichotomy,
5353
fully supported by MicroPython. Non-blocking streams never wait for
5454
data either to arrive or be written - they read/write whatever possible,
5555
or signal lack of data (or ability to write data). Clearly, this conflicts

docs/library/uselect.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ Methods
8787
`callee-owned tuple`. This function provides an efficient, allocation-free
8888
way to poll on streams.
8989

90-
If *flags* is 1, one-shot behavior for events is employed: streams for
90+
If *flags* is 1, one-shot behaviour for events is employed: streams for
9191
which events happened will have their event masks automatically reset
9292
(equivalent to ``poll.modify(obj, 0)``), so new events for such a stream
9393
won't be processed until new mask is set with `poll.modify()`. This
94-
behavior is useful for asynchronous I/O schedulers.
94+
behaviour is useful for asynchronous I/O schedulers.
9595

9696
.. admonition:: Difference to CPython
9797
:class: attention

0 commit comments

Comments
 (0)