This commit is contained in:
Samuel Webb 2024-07-11 19:57:48 -04:00
parent e8f09190d6
commit 5b51d6f393
46 changed files with 83 additions and 65 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) {