diff options
author | Damien George <damien@micropython.org> | 2023-03-08 14:10:02 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-04-27 18:03:06 +1000 |
commit | b1229efbd1509654dec6053865ab828d769e29db (patch) | |
tree | e1a65606dd1f0a8cfe2af08f9c4ff821fb575b02 /docs/reference | |
parent | e160fe7bc64212a3ce56f5478f208e2b4d343a8b (diff) | |
download | micropython-b1229efbd1509654dec6053865ab828d769e29db.tar.gz micropython-b1229efbd1509654dec6053865ab828d769e29db.zip |
all: Fix spelling mistakes based on codespell check.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/reference')
-rw-r--r-- | docs/reference/asm_thumb2_compare.rst | 4 | ||||
-rw-r--r-- | docs/reference/constrained.rst | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/reference/asm_thumb2_compare.rst b/docs/reference/asm_thumb2_compare.rst index 521af69da3..5258195503 100644 --- a/docs/reference/asm_thumb2_compare.rst +++ b/docs/reference/asm_thumb2_compare.rst @@ -75,7 +75,7 @@ Execute the next instruction if <condition> is true: * ite(<condition>) If then else -If <condtion> is true, execute the next instruction, otherwise execute the +If <condition> is true, execute the next instruction, otherwise execute the subsequent one. Thus: :: @@ -86,5 +86,5 @@ subsequent one. Thus: mov(r0, 200) # runs if r0 != r1 # execution continues here -This may be extended to control the execution of upto four subsequent instructions: it[x[y[z]]] +This may be extended to control the execution of up to four subsequent instructions: it[x[y[z]]] where x,y,z=t/e; e.g. itt, itee, itete, ittte, itttt, iteee, etc. diff --git a/docs/reference/constrained.rst b/docs/reference/constrained.rst index 2bcf9f7fb7..59c375159b 100644 --- a/docs/reference/constrained.rst +++ b/docs/reference/constrained.rst @@ -264,7 +264,7 @@ were a string. **Runtime compiler execution** -The Python funcitons `eval` and `exec` invoke the compiler at runtime, which +The Python functions `eval` and `exec` invoke the compiler at runtime, which requires significant amounts of RAM. Note that the ``pickle`` library from `micropython-lib` employs `exec`. It may be more RAM efficient to use the `json` library for object serialisation. @@ -403,7 +403,7 @@ Control of garbage collection ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A GC can be demanded at any time by issuing `gc.collect()`. It is advantageous -to do this at intervals, firstly to pre-empt fragmentation and secondly for +to do this at intervals, firstly to preempt fragmentation and secondly for performance. A GC can take several milliseconds but is quicker when there is little work to do (about 1ms on the Pyboard). An explicit call can minimise that delay while ensuring it occurs at points in the program when it is acceptable. |