mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Update 024_errors4.zig
This commit is contained in:
parent
d14cc0a8ab
commit
6912bd70ca
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue