summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-18 11:07:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-18 11:07:27 -0300
commitc33b1728aeb7dfeec4013562660e07d32697aa6b (patch)
tree0aebcad8875f137b63b4593d8e66a956c21e035b /manual
parenta304199836ef37af6912a1da6f9b6cad33466a84 (diff)
downloadlua-5.4.0.tar.gz
lua-5.4.0.tar.bz2
lua-5.4.0.zip
Detailsv5.4.0
Added as incompatibility, in the manual, the extra return of 'io.lines'.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of11
1 files changed, 11 insertions, 0 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 4d1794fc..9c275d15 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -9116,6 +9116,17 @@ of the function @Lid{collectgarbage} are deprecated.
9116You should use the new option @St{incremental} to set them. 9116You should use the new option @St{incremental} to set them.
9117} 9117}
9118 9118
9119@item{
9120The function @Lid{io.lines} now returns four values,
9121instead of just one.
9122That can be a problem when it is used as the sole
9123argument to another function that has optional parameters,
9124such as in @T{load(io.lines(filename, "L"))}.
9125To fix that issue,
9126you can wrap the call into parentheses,
9127to adjust its number of results to one.
9128}
9129
9119} 9130}
9120 9131
9121} 9132}