optionals done

This commit is contained in:
2026-06-21 20:52:47 +02:00
parent 28a82c5c08
commit a5bc189274
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ pub fn main() void {
// Please threaten the result so that answer is either the
// integer value from deepThought() OR the number 42:
const answer: u8 = result;
const answer: u8 = result orelse 42;
std.debug.print("The Ultimate Answer: {}.\n", .{answer});
}