Must use capture value

This commit is contained in:
Dave Gauer 2021-06-30 17:56:42 -04:00
parent 08217c940c
commit 584993b7b8
1 changed files with 1 additions and 1 deletions

View File

@ -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. "