diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-03 11:32:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-03 11:32:49 -0300 |
commit | 3f4f28010aa5065456f1edf97de1ab268cc49944 (patch) | |
tree | 18ef631f33d1e71cf7f9d20b67d9148499a9dcf4 /manual | |
parent | 93e347b51923a3f0b993aac37c74e1489c02f3b5 (diff) | |
download | lua-3f4f28010aa5065456f1edf97de1ab268cc49944.tar.gz lua-3f4f28010aa5065456f1edf97de1ab268cc49944.tar.bz2 lua-3f4f28010aa5065456f1edf97de1ab268cc49944.zip |
io.write returns number of written bytes on error
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/manual/manual.of b/manual/manual.of index c1a9c138..7cd0d4db 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -8699,6 +8699,9 @@ Writes the value of each of its arguments to @id{file}. | |||
8699 | The arguments must be strings or numbers. | 8699 | The arguments must be strings or numbers. |
8700 | 8700 | ||
8701 | In case of success, this function returns @id{file}. | 8701 | In case of success, this function returns @id{file}. |
8702 | Otherwise, it returns four values: | ||
8703 | @fail, the error message, the error code, | ||
8704 | and the number of bytes it was able to write. | ||
8702 | 8705 | ||
8703 | } | 8706 | } |
8704 | 8707 | ||