Skip to content

Commit a2c4cb4

Browse files
mcauserdpgeorge
authored andcommitted
docs: Fix spelling in various parts of the docs.
1 parent 5a8f392 commit a2c4cb4

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

docs/esp32/quickref.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The :mod:`network` module::
7777
wlan.scan() # scan for access points
7878
wlan.isconnected() # check if the station is connected to an AP
7979
wlan.connect('essid', 'password') # connect to an AP
80-
wlan.config('mac') # get the interface's MAC adddress
80+
wlan.config('mac') # get the interface's MAC address
8181
wlan.ifconfig() # get the interface's IP/netmask/gw/DNS addresses
8282

8383
ap = network.WLAN(network.AP_IF) # create access-point interface
@@ -203,7 +203,7 @@ Use the :ref:`machine.ADC <machine.ADC>` class::
203203
adc = ADC(Pin(32)) # create ADC object on ADC pin
204204
adc.read() # read value, 0-4095 across voltage range 0.0v - 1.0v
205205

206-
adc.atten(ADC.ATTN_11DB) # set 11dB input attentuation (voltage range roughly 0.0v - 3.6v)
206+
adc.atten(ADC.ATTN_11DB) # set 11dB input attenuation (voltage range roughly 0.0v - 3.6v)
207207
adc.width(ADC.WIDTH_9BIT) # set 9 bit return values (returned range 0-511)
208208
adc.read() # read value using the newly configured attenuation and width
209209

@@ -257,7 +257,7 @@ class::
257257
spi.init(baudrate=200000) # set the baudrate
258258

259259
spi.read(10) # read 10 bytes on MISO
260-
spi.read(10, 0xff) # read 10 bytes while outputing 0xff on MOSI
260+
spi.read(10, 0xff) # read 10 bytes while outputting 0xff on MOSI
261261

262262
buf = bytearray(50) # create a buffer
263263
spi.readinto(buf) # read into the given buffer (reads 50 bytes in this case)

docs/esp8266/general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The above may also happen after an application terminates and quits to the REPL
140140
for any reason including an exception. Subsequent arrival of data provokes the
141141
failure with the above error message repeatedly issued. So, sockets should be
142142
closed in any case, regardless whether an application terminates successfully
143-
or by an exeption, for example using try/finally::
143+
or by an exception, for example using try/finally::
144144

145145
sock = socket(...)
146146
try:

docs/esp8266/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class::
188188
spi.init(baudrate=200000) # set the baudrate
189189

190190
spi.read(10) # read 10 bytes on MISO
191-
spi.read(10, 0xff) # read 10 bytes while outputing 0xff on MOSI
191+
spi.read(10, 0xff) # read 10 bytes while outputting 0xff on MOSI
192192

193193
buf = bytearray(50) # create a buffer
194194
spi.readinto(buf) # read into the given buffer (reads 50 bytes in this case)

docs/library/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ parameter should be `id`.
6868
(password) required to access said service. There can be further
6969
arbitrary keyword-only parameters, depending on the networking medium
7070
type and/or particular device. Parameters can be used to: a)
71-
specify alternative service identifer types; b) provide additional
71+
specify alternative service identifier types; b) provide additional
7272
connection parameters. For various medium types, there are different
7373
sets of predefined/recommended parameters, among them:
7474

docs/library/uhashlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ be implemented:
1818
* SHA1 - A previous generation algorithm. Not recommended for new usages,
1919
but SHA1 is a part of number of Internet standards and existing
2020
applications, so boards targeting network connectivity and
21-
interoperatiability will try to provide this.
21+
interoperability will try to provide this.
2222

2323
* MD5 - A legacy algorithm, not considered cryptographically secure. Only
24-
selected boards, targeting interoperatibility with legacy applications,
24+
selected boards, targeting interoperability with legacy applications,
2525
will offer this.
2626

2727
Constructors

docs/library/uos.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Filesystem access
9494
* ``f_frsize`` -- fragment size
9595
* ``f_blocks`` -- size of fs in f_frsize units
9696
* ``f_bfree`` -- number of free blocks
97-
* ``f_bavail`` -- number of free blocks for unpriviliged users
97+
* ``f_bavail`` -- number of free blocks for unprivileged users
9898
* ``f_files`` -- number of inodes
9999
* ``f_ffree`` -- number of free inodes
100-
* ``f_favail`` -- number of free inodes for unpriviliged users
100+
* ``f_favail`` -- number of free inodes for unprivileged users
101101
* ``f_flag`` -- mount flags
102102
* ``f_namemax`` -- maximum filename length
103103

docs/pyboard/tutorial/leds.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ When you save, the red light on the pyboard should turn on for about a second. T
2020

2121
So what does this code do? First we need some terminology. Python is an object-oriented language, almost everything in python is a *class* and when you create an instance of a class you get an *object*. Classes have *methods* associated to them. A method (also called a member function) is used to interact with or control the object.
2222

23-
The first line of code creates an LED object which we have then called led. When we create the object, it takes a single parameter which must be between 1 and 4, corresponding to the 4 LEDs on the board. The pyb.LED class has three important member functions that we will use: on(), off() and toggle(). The other function that we use is pyb.delay() this simply waits for a given time in miliseconds. Once we have created the LED object, the statement while True: creates an infinite loop which toggles the led between on and off and waits for 1 second.
23+
The first line of code creates an LED object which we have then called led. When we create the object, it takes a single parameter which must be between 1 and 4, corresponding to the 4 LEDs on the board. The pyb.LED class has three important member functions that we will use: on(), off() and toggle(). The other function that we use is pyb.delay() this simply waits for a given time in milliseconds. Once we have created the LED object, the statement while True: creates an infinite loop which toggles the led between on and off and waits for 1 second.
2424

2525
**Exercise: Try changing the time between toggling the led and turning on a different LED.**
2626

docs/reference/packages.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The MicroPython distribution package format is a well-known tar.gz
3939
format, with some adaptations however. The Gzip compressor, used as
4040
an external wrapper for TAR archives, by default uses 32KB dictionary
4141
size, which means that to uncompress a compressed stream, 32KB of
42-
contguous memory needs to be allocated. This requirement may be not
42+
contiguous memory needs to be allocated. This requirement may be not
4343
satisfiable on low-memory devices, which may have total memory available
4444
less than that amount, and even if not, a contiguous block like that
4545
may be hard to allocate due to memory fragmentation. To accommodate
@@ -132,7 +132,7 @@ Installing to a directory image involves using ``-p`` switch to `upip`::
132132

133133
micropython -m upip install -p install_dir micropython-pystone_lowmem
134134

135-
After this command, the package content (and contents of every depenency
135+
After this command, the package content (and contents of every dependency
136136
packages) will be available in the ``install_dir/`` subdirectory. You
137137
would need to transfer contents of this directory (without the
138138
``install_dir/`` prefix) to the device, at the suitable location, where

docs/reference/speed_python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ There are certain limitations in the current implementation of the native code e
214214
* Generators are not supported.
215215
* If ``raise`` is used an argument must be supplied.
216216

217-
The trade-off for the improved performance (roughly twices as fast as bytecode) is an
217+
The trade-off for the improved performance (roughly twice as fast as bytecode) is an
218218
increase in compiled code size.
219219

220220
The Viper code emitter

0 commit comments

Comments
 (0)