zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c13ac52972b864ff3aa9fc373f96d7ede41d5a31 (tree)
parent 54ea0bbcdddc9e13ed98415d8883f03d59392509
Author: Arya-Elfren <109028294+Arya-Elfren@users.noreply.github.com>
Date:   Sun, 18 Jun 2023 14:47:35 +0100

Fix a confusing comment in `langref.html.in`
Diffstat:
Mdoc/langref.html.in | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/doc/langref.html.in b/doc/langref.html.in @@ -5091,11 +5091,10 @@ fn deferErrorExample(is_error: bool) !void { } } -// The errdefer keyword support also an alternative syntax to capture the -// error generated in case of one error. +// The errdefer keyword also supports an alternative syntax to capture the +// generated error. // -// This is useful when during the clean up after an error additional -// message want to be printed. +// This is useful for printing an additional error message during clean up. fn deferErrorCaptureExample() !void { errdefer |err| { std.debug.print("the error is {s}\n", .{@errorName(err)});