mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
Must use capture value
This commit is contained in:
parent
6fb910b779
commit
a84677d798
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ pub fn main() void {
|
|||
|
||||
var n = numberMaybeFail(num);
|
||||
if (n) |value| {
|
||||
std.debug.print("=4. ", .{});
|
||||
std.debug.print("={}. ", .{value});
|
||||
} else |err| switch (err) {
|
||||
MyNumberError.TooBig => std.debug.print(">4. ", .{}),
|
||||
// Please add a match for TooSmall here and have it print: "<4. "
|
||||
|
|
Loading…
Reference in a new issue