Update 024_errors4.zig

This commit is contained in:
Dave Gauer 2021-08-28 10:35:40 -04:00 committed by GitHub
parent d14cc0a8ab
commit 6912bd70ca

View file

@ -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;