ziglings/patches/patches/023_errors3.patch

9 lines
174 B
Diff
Raw Normal View History

2021-02-15 17:13:55 -05:00
15c15
< var b: u32 = addTwenty(4) ??? 22;
---
> var b: u32 = addTwenty(4) catch 22;
22c22
< fn addTwenty(n: u32) ??? {
---
> fn addTwenty(n: u32) MyNumberError!u32 {