From 3f4f28010aa5065456f1edf97de1ab268cc49944 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 3 Apr 2025 11:32:49 -0300 Subject: io.write returns number of written bytes on error --- manual/manual.of | 3 +++ 1 file changed, 3 insertions(+) (limited to 'manual') 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}. The arguments must be strings or numbers. In case of success, this function returns @id{file}. +Otherwise, it returns four values: +@fail, the error message, the error code, +and the number of bytes it was able to write. } -- cgit v1.2.3-55-g6feb