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

@ -19,7 +19,7 @@ const std = @import("std");
const MyNumberError = error{TooSmall};
pub fn main() void {
var my_number: ??? = 5;
var my_number: MyNumberError!u8 = 5;
// Looks like my_number will need to either store a number OR
// an error. Can you set the type correctly above?