aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rwxr-xr-xmanual/2html2
-rw-r--r--manual/manual.of10
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&copy; 2023 Lua.org, PUC-Rio. All rights reserved. 33&copy; 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,
289an @def{error object} 289an @def{error object}
290is propagated with information about the error. 290is propagated with information about the error.
291Lua itself only generates errors whose error object is a string, 291Lua itself only generates errors whose error object is a string,
292but programs may generate errors with 292but programs can generate errors with
293any value as the error object. 293any value as the error object.
294It is up to the Lua program or its host to handle such error objects. 294It is up to the Lua program or its host to handle such error objects.
295For historical reasons, 295For historical reasons,
@@ -298,7 +298,7 @@ even though it does not have to be a string.
298 298
299 299
300When you use @Lid{xpcall} (or @Lid{lua_pcall}, in C) 300When you use @Lid{xpcall} (or @Lid{lua_pcall}, in C)
301you may give a @def{message handler} 301you can give a @def{message handler}
302to be called in case of errors. 302to be called in case of errors.
303This function is called with the original error object 303This function is called with the original error object
304and returns a new error object. 304and returns a new error object.
@@ -343,7 +343,7 @@ which is then called a @def{metamethod}.
343In the previous example, the key is the string @St{__add} 343In the previous example, the key is the string @St{__add}
344and the metamethod is the function that performs the addition. 344and the metamethod is the function that performs the addition.
345Unless stated otherwise, 345Unless stated otherwise,
346a metamethod may in fact be any @x{callable value}, 346a metamethod can in fact be any @x{callable value},
347which is either a function or a value with a @idx{__call} metamethod. 347which is either a function or a value with a @idx{__call} metamethod.
348 348
349You can query the metatable of any value 349You can query the metatable of any value
@@ -1417,7 +1417,7 @@ labels in Lua are considered statements too:
1417 1417
1418A label is visible in the entire block where it is defined, 1418A label is visible in the entire block where it is defined,
1419except inside nested functions. 1419except inside nested functions.
1420A goto may jump to any visible label as long as it does not 1420A goto can jump to any visible label as long as it does not
1421enter into the scope of a local variable. 1421enter into the scope of a local variable.
1422A label should not be declared 1422A label should not be declared
1423where a label with the same name is visible, 1423where a label with the same name is visible,
@@ -4488,7 +4488,7 @@ but can contain other zeros in its body.
4488 4488
4489This function can raise memory errors only 4489This function can raise memory errors only
4490when converting a number to a string 4490when 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