authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-16 10:07:08-07:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-16 21:47:45+02:00
log50423dfa0bcfe7ff662d595216cba6ba754f8cbf
tree5a5b7ca12c6597a93bc10955411ccbae3b58b42f
parentf24b0bc4dde608150df09c507e4db0ecfa042ced
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Io.Writer.print: fix wrong fn signature in docs

closes #25963

1 files changed, 7 insertions(+), 3 deletions(-)

lib/std/Io/Writer.zig+7-3
...@@ -599,11 +599,15 @@ pub fn writeAll(w: *Writer, bytes: []const u8) Error!void {...@@ -599,11 +599,15 @@ pub fn writeAll(w: *Writer, bytes: []const u8) Error!void {
599/// - `u`: integer as an UTF-8 sequence. Integer type must have 21 bits at max.599/// - `u`: integer as an UTF-8 sequence. Integer type must have 21 bits at max.
600/// - `B`: bytes in SI units (decimal)600/// - `B`: bytes in SI units (decimal)
601/// - `Bi`: bytes in IEC units (binary)601/// - `Bi`: bytes in IEC units (binary)
602/// - `?`: optional value as either the unwrapped value, or `null`; may be followed by a format specifier for the underlying value.602/// - `?`: optional value as either the unwrapped value, or `null`; may be
603/// - `!`: error union value as either the unwrapped value, or the formatted error value; may be followed by a format specifier for the underlying value.603/// followed by a format specifier for the underlying value.
604/// - `!`: error union value as either the unwrapped value, or the formatted
605/// error value; may be followed by a format specifier for the underlying
606/// value.
604/// - `*`: the address of the value instead of the value itself.607/// - `*`: the address of the value instead of the value itself.
605/// - `any`: a value of any type using its default format.608/// - `any`: a value of any type using its default format.
606/// - `f`: delegates to a method on the type named "format" with the signature `fn (*Writer, args: anytype) Writer.Error!void`.609/// - `f`: delegates to the `format` method of the type, passing `*Writer` and
610/// expecting `Error!void` returned.
607///611///
608/// A user type may be a struct, vector, union or enum type.612/// A user type may be a struct, vector, union or enum type.
609///613///