1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

Update 034_quiz4.zig

Closes #76 By making comment more clear
This commit is contained in:
Paul Sorensen 2021-11-10 11:30:37 -05:00 committed by GitHub
parent 10a0cda136
commit 8026785e0b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ pub fn main() void {
try stdout.print("my_num={}\n", .{my_num});
}
// Just don't modify this function. It's "perfect" the way it is. :-)
// This function is obviously weird and non-functional. But you will not be changing it for this quiz.
fn getNumber() NumError!u32 {
if (false) return NumError.IllegalNumber;
return 42;