Update 024_errors4.zig

pull/2/head
Dave Gauer 3 years ago committed by GitHub
parent d14cc0a8ab
commit 6912bd70ca

@ -19,8 +19,8 @@ const MyNumberError = error{
};
pub fn main() void {
// The "catch 0" below is just our way of dealing with the fact
// that makeJustRight() returns a error union (for now).
// The "catch 0" below is a temporary hack to deal with
// makeJustRight()'s returned error union (for now).
var a: u32 = makeJustRight(44) catch 0;
var b: u32 = makeJustRight(14) catch 0;
var c: u32 = makeJustRight(4) catch 0;

Loading…
Cancel
Save