This commit is contained in:
Adam Millerchip 2021-12-25 23:26:31 +09:00
parent 5a2180ee9b
commit bfccdd1c08
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
// "TooSmall". Please add it where needed!
const MyNumberError = error{
TooBig,
???,
TooSmall,
TooFour,
};
@ -26,7 +26,7 @@ pub fn main() void {
if (number_error == MyNumberError.TooBig) {
std.debug.print(">4. ", .{});
}
if (???) {
if (number_error == MyNumberError.TooSmall) {
std.debug.print("<4. ", .{});
}
if (number_error == MyNumberError.TooFour) {