diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
commit | 2c68e66570206aa1496f9c76fcf2a1a0f550d692 (patch) | |
tree | bcc6fd7939b12ef3a636d88ce0ac38da036660d8 /manual/manual.of | |
parent | 7d0f41df41e9c513e7282356541b54beaf9ed20d (diff) | |
download | lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.gz lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.bz2 lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.zip |
Details
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
Diffstat (limited to 'manual/manual.of')
-rw-r--r-- | manual/manual.of | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manual/manual.of b/manual/manual.of index ff69cd2c..687a5b89 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -1504,7 +1504,7 @@ There are two possible attributes: | |||
1504 | @id{const}, which declares a @x{constant variable}, | 1504 | @id{const}, which declares a @x{constant variable}, |
1505 | that is, a variable that cannot be assigned to | 1505 | that is, a variable that cannot be assigned to |
1506 | after its initialization; | 1506 | after its initialization; |
1507 | and @id{toclose}, wich declares a to-be-closed variable @see{to-be-closed}. | 1507 | and @id{toclose}, which declares a to-be-closed variable @see{to-be-closed}. |
1508 | 1508 | ||
1509 | 1509 | ||
1510 | A chunk is also a block @see{chunks}, | 1510 | A chunk is also a block @see{chunks}, |
@@ -1549,7 +1549,7 @@ the other pending closing methods will still be called. | |||
1549 | 1549 | ||
1550 | If a coroutine yields inside a block and is never resumed again, | 1550 | If a coroutine yields inside a block and is never resumed again, |
1551 | the variables visible at that block will never go out of scope, | 1551 | the variables visible at that block will never go out of scope, |
1552 | and therefore they will not be closed. | 1552 | and therefore they will never be closed. |
1553 | Similarly, if a coroutine ends with an error, | 1553 | Similarly, if a coroutine ends with an error, |
1554 | it does not unwind its stack, | 1554 | it does not unwind its stack, |
1555 | so it does not close any variable. | 1555 | so it does not close any variable. |
@@ -3432,7 +3432,6 @@ The new thread returned by this function shares with the original thread | |||
3432 | its global environment, | 3432 | its global environment, |
3433 | but has an independent execution stack. | 3433 | but has an independent execution stack. |
3434 | 3434 | ||
3435 | There is no explicit function to close or to destroy a thread. | ||
3436 | Threads are subject to garbage collection, | 3435 | Threads are subject to garbage collection, |
3437 | like any Lua object. | 3436 | like any Lua object. |
3438 | 3437 | ||