diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-08-28 10:35:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 10:35:40 -0400 |
commit | 116b3552102dd168f4c97ec2ac17b386418cec3d (patch) | |
tree | a58ce93c50e27d4ae14885c07b94f3ca6d905a95 /exercises | |
parent | 71fbe3a07b21d8b5fbd729e493f7b866fd4f6dd4 (diff) | |
download | ziglings-116b3552102dd168f4c97ec2ac17b386418cec3d.tar.gz ziglings-116b3552102dd168f4c97ec2ac17b386418cec3d.tar.bz2 ziglings-116b3552102dd168f4c97ec2ac17b386418cec3d.tar.xz ziglings-116b3552102dd168f4c97ec2ac17b386418cec3d.zip |
Update 024_errors4.zig
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/024_errors4.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/024_errors4.zig b/exercises/024_errors4.zig index b4fa955..c2f4f6f 100644 --- a/exercises/024_errors4.zig +++ b/exercises/024_errors4.zig @@ -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; |