aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarkfirmware <markfirmware@users.noreply.github.com>2020-04-02 22:39:23 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-03 12:12:40 -0400
commit203d6554b1e54e06aa28cbcfa74596911cd60b4c (patch)
treecabe1e19a361b94ee012f5b2db53bd62cdab41b4 /lib
parent08a9ab4d8c7f1baeb6169088284c06fb2b9707ce (diff)
downloadzig-203d6554b1e54e06aa28cbcfa74596911cd60b4c.tar.gz
zig-203d6554b1e54e06aa28cbcfa74596911cd60b4c.zip
Update fmt.zig
Diffstat (limited to 'lib')
-rw-r--r--lib/std/fmt.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index bcc470e9b9..dca2a59171 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -69,7 +69,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool {
///
/// If a formatted user type contains a function of the type
/// ```
-/// fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, out_stream: var) !void
+/// pub fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, out_stream: var) !void
/// ```
/// with `?` being the type formatted, this function will be called instead of the default implementation.
/// This allows user types to be formatted in a logical manner instead of dumping all fields of the type.