diff options
Diffstat (limited to 'manual')
| -rwxr-xr-x | manual/2html | 2 | ||||
| -rw-r--r-- | manual/manual.of | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/manual/2html b/manual/2html index 43fd8913..4a3e5771 100755 --- a/manual/2html +++ b/manual/2html | |||
| @@ -30,7 +30,7 @@ by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes | |||
| 30 | <p> | 30 | <p> |
| 31 | <small> | 31 | <small> |
| 32 | <a href="http://www.lua.org/copyright.html">Copyright</a> | 32 | <a href="http://www.lua.org/copyright.html">Copyright</a> |
| 33 | © 2023 Lua.org, PUC-Rio. All rights reserved. | 33 | © 2024 Lua.org, PUC-Rio. All rights reserved. |
| 34 | </small> | 34 | </small> |
| 35 | <hr> | 35 | <hr> |
| 36 | 36 | ||
diff --git a/manual/manual.of b/manual/manual.of index cef3e22a..b68d41c9 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
| @@ -289,7 +289,7 @@ Whenever there is an error, | |||
| 289 | an @def{error object} | 289 | an @def{error object} |
| 290 | is propagated with information about the error. | 290 | is propagated with information about the error. |
| 291 | Lua itself only generates errors whose error object is a string, | 291 | Lua itself only generates errors whose error object is a string, |
| 292 | but programs may generate errors with | 292 | but programs can generate errors with |
| 293 | any value as the error object. | 293 | any value as the error object. |
| 294 | It is up to the Lua program or its host to handle such error objects. | 294 | It is up to the Lua program or its host to handle such error objects. |
| 295 | For historical reasons, | 295 | For historical reasons, |
| @@ -298,7 +298,7 @@ even though it does not have to be a string. | |||
| 298 | 298 | ||
| 299 | 299 | ||
| 300 | When you use @Lid{xpcall} (or @Lid{lua_pcall}, in C) | 300 | When you use @Lid{xpcall} (or @Lid{lua_pcall}, in C) |
| 301 | you may give a @def{message handler} | 301 | you can give a @def{message handler} |
| 302 | to be called in case of errors. | 302 | to be called in case of errors. |
| 303 | This function is called with the original error object | 303 | This function is called with the original error object |
| 304 | and returns a new error object. | 304 | and returns a new error object. |
| @@ -343,7 +343,7 @@ which is then called a @def{metamethod}. | |||
| 343 | In the previous example, the key is the string @St{__add} | 343 | In the previous example, the key is the string @St{__add} |
| 344 | and the metamethod is the function that performs the addition. | 344 | and the metamethod is the function that performs the addition. |
| 345 | Unless stated otherwise, | 345 | Unless stated otherwise, |
| 346 | a metamethod may in fact be any @x{callable value}, | 346 | a metamethod can in fact be any @x{callable value}, |
| 347 | which is either a function or a value with a @idx{__call} metamethod. | 347 | which is either a function or a value with a @idx{__call} metamethod. |
| 348 | 348 | ||
| 349 | You can query the metatable of any value | 349 | You can query the metatable of any value |
| @@ -1417,7 +1417,7 @@ labels in Lua are considered statements too: | |||
| 1417 | 1417 | ||
| 1418 | A label is visible in the entire block where it is defined, | 1418 | A label is visible in the entire block where it is defined, |
| 1419 | except inside nested functions. | 1419 | except inside nested functions. |
| 1420 | A goto may jump to any visible label as long as it does not | 1420 | A goto can jump to any visible label as long as it does not |
| 1421 | enter into the scope of a local variable. | 1421 | enter into the scope of a local variable. |
| 1422 | A label should not be declared | 1422 | A label should not be declared |
| 1423 | where a label with the same name is visible, | 1423 | where a label with the same name is visible, |
| @@ -4488,7 +4488,7 @@ but can contain other zeros in its body. | |||
| 4488 | 4488 | ||
| 4489 | This function can raise memory errors only | 4489 | This function can raise memory errors only |
| 4490 | when converting a number to a string | 4490 | when converting a number to a string |
| 4491 | (as then it has to create a new string). | 4491 | (as then it may create a new string). |
| 4492 | 4492 | ||
| 4493 | } | 4493 | } |
| 4494 | 4494 | ||
