authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2020-02-12 18:35:39-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-02-12 18:35:39-05:00
log08666a057ac9738e926df7ac02932043ae2d5997
tree4166be37ba62d841a88aa44153e977891a2a0c01
parentab4ea5d3cf5a96cd596df14515521843ca4dccad
parentd06bfc2e2a5e873d3d7e28cf78a46b8454c633aa
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #4439 from vegecode/custom-format-comment-issue

Correct comment to include comptime attribute on format output fn par…

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

lib/std/fmt.zig+1-1
...@@ -69,7 +69,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool {...@@ -69,7 +69,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool {
69///69///
70/// If a formatted user type contains a function of the type70/// If a formatted user type contains a function of the type
71/// ```71/// ```
72/// fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, context: var, comptime Errors: type, output: fn (@TypeOf(context), []const u8) Errors!void) Errors!void72/// fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, context: var, comptime Errors: type, comptime output: fn (@TypeOf(context), []const u8) Errors!void) Errors!void
73/// ```73/// ```
74/// with `?` being the type formatted, this function will be called instead of the default implementation.74/// with `?` being the type formatted, this function will be called instead of the default implementation.
75/// This allows user types to be formatted in a logical manner instead of dumping all fields of the type.75/// This allows user types to be formatted in a logical manner instead of dumping all fields of the type.