diff options
-rw-r--r-- | manual/manual.of | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manual/manual.of b/manual/manual.of index 53073a54..a3990d33 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -1499,13 +1499,13 @@ The declaration can include an initialization: | |||
1499 | @Produc{ | 1499 | @Produc{ |
1500 | @producname{stat}@producbody{@Rw{local} attnamelist @bnfopt{@bnfter{=} explist}} | 1500 | @producname{stat}@producbody{@Rw{local} attnamelist @bnfopt{@bnfter{=} explist}} |
1501 | @producname{attnamelist}@producbody{ | 1501 | @producname{attnamelist}@producbody{ |
1502 | attrib @bnfNter{Name} @bnfrep{@bnfter{,} attrib @bnfNter{Name}}} | 1502 | @bnfNter{Name} attrib @bnfrep{@bnfter{,} @bnfNter{Name} attrib}} |
1503 | } | 1503 | } |
1504 | If present, an initial assignment has the same semantics | 1504 | If present, an initial assignment has the same semantics |
1505 | of a multiple assignment @see{assignment}. | 1505 | of a multiple assignment @see{assignment}. |
1506 | Otherwise, all variables are initialized with @nil. | 1506 | Otherwise, all variables are initialized with @nil. |
1507 | 1507 | ||
1508 | Each variable name may be preceded by an attribute | 1508 | Each variable name may be postfixed by an attribute |
1509 | (a name between angle brackets): | 1509 | (a name between angle brackets): |
1510 | @Produc{ | 1510 | @Produc{ |
1511 | @producname{attrib}@producbody{@bnfopt{@bnfter{<} @bnfNter{Name} @bnfter{>}}} | 1511 | @producname{attrib}@producbody{@bnfopt{@bnfter{<} @bnfNter{Name} @bnfter{>}}} |
@@ -1514,7 +1514,7 @@ There are two possible attributes: | |||
1514 | @id{const}, which declares a @x{constant variable}, | 1514 | @id{const}, which declares a @x{constant variable}, |
1515 | that is, a variable that cannot be assigned to | 1515 | that is, a variable that cannot be assigned to |
1516 | after its initialization; | 1516 | after its initialization; |
1517 | and @id{toclose}, which declares a to-be-closed variable @see{to-be-closed}. | 1517 | and @id{close}, which declares a to-be-closed variable @see{to-be-closed}. |
1518 | A list of variables can contain at most one to-be-closed variable. | 1518 | A list of variables can contain at most one to-be-closed variable. |
1519 | 1519 | ||
1520 | A chunk is also a block @see{chunks}, | 1520 | A chunk is also a block @see{chunks}, |
@@ -1569,7 +1569,7 @@ Similarly, if a coroutine ends with an error, | |||
1569 | it does not unwind its stack, | 1569 | it does not unwind its stack, |
1570 | so it does not close any variable. | 1570 | so it does not close any variable. |
1571 | In both cases, | 1571 | In both cases, |
1572 | you should either use finalizers | 1572 | you can either use finalizers |
1573 | or call @Lid{coroutine.close} to close the variables. | 1573 | or call @Lid{coroutine.close} to close the variables. |
1574 | However, if the coroutine was created | 1574 | However, if the coroutine was created |
1575 | through @Lid{coroutine.wrap}, | 1575 | through @Lid{coroutine.wrap}, |
@@ -9066,7 +9066,7 @@ and @bnfNter{LiteralString}, see @See{lexical}.) | |||
9066 | } | 9066 | } |
9067 | 9067 | ||
9068 | @producname{attnamelist}@producbody{ | 9068 | @producname{attnamelist}@producbody{ |
9069 | attrib @bnfNter{Name} @bnfrep{@bnfter{,} attrib @bnfNter{Name}}} | 9069 | @bnfNter{Name} attrib @bnfrep{@bnfter{,} @bnfNter{Name} attrib}} |
9070 | 9070 | ||
9071 | @producname{attrib}@producbody{@bnfopt{@bnfter{<} @bnfNter{Name} @bnfter{>}}} | 9071 | @producname{attrib}@producbody{@bnfopt{@bnfter{<} @bnfNter{Name} @bnfter{>}}} |
9072 | 9072 | ||