This commit is contained in:
Adam Millerchip 2021-12-25 23:30:24 +09:00
parent bfccdd1c08
commit 356c301a9e
1 changed files with 1 additions and 1 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?