mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-02 00:13:30 +02:00
progress
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user