Must use capture value

This commit is contained in:
Dave Gauer 2021-06-30 17:56:42 -04:00
parent 6fb910b779
commit a84677d798

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