authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-16 10:07:08-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-04-16 10:07:22-07:00
logd092c752f3e2e0e162e9bab57d3f84de6ccde7c9
treee5c44ce9e2e106454aa0db41515e1f464b57ef6e
parent84c2d809ec90aa3d5934adac33551f82656625ee

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///