diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manual/manual.of b/manual/manual.of index a55c7b49..ff4e79fe 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -1612,10 +1612,11 @@ or exiting by an error. | |||
1612 | Here, to @emph{close} a value means | 1612 | Here, to @emph{close} a value means |
1613 | to call its @idx{__close} metamethod. | 1613 | to call its @idx{__close} metamethod. |
1614 | When calling the metamethod, | 1614 | When calling the metamethod, |
1615 | the value itself is passed as the first argument | 1615 | the value itself is passed as the first argument. |
1616 | and the error object that caused the exit (if any) | 1616 | If there was an error, |
1617 | the error object that caused the exit | ||
1617 | is passed as a second argument; | 1618 | is passed as a second argument; |
1618 | if there was no error, the second argument is @nil. | 1619 | otherwise, there is no second argument. |
1619 | 1620 | ||
1620 | The value assigned to a to-be-closed variable | 1621 | The value assigned to a to-be-closed variable |
1621 | must have a @idx{__close} metamethod | 1622 | must have a @idx{__close} metamethod |