mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-01 08:03:29 +02:00
Update 024_errors4.zig
This commit is contained in:
committed by
GitHub
co-authored 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;
|
||||
|
||||
Reference in New Issue
Block a user