mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 11:13:08 +00:00
Fix a confusing comment in langref.html.in
This commit is contained in:
parent
54ea0bbcdd
commit
c13ac52972
@ -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)});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user