diff options
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/048_methods2.zig | 2 | ||||
-rw-r--r-- | exercises/061_coercions.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/048_methods2.zig b/exercises/048_methods2.zig index 9fa3d97..3ce6a6c 100644 --- a/exercises/048_methods2.zig +++ b/exercises/048_methods2.zig @@ -11,7 +11,7 @@ const Elephant = struct { // New Elephant methods! pub fn getTail(self: *Elephant) *Elephant { - return self.tail.?; // Remember, this is means "orelse unreachable" + return self.tail.?; // Remember, this means "orelse unreachable" } pub fn hasTail(self: *Elephant) bool { diff --git a/exercises/061_coercions.zig b/exercises/061_coercions.zig index 043684e..e4f87d8 100644 --- a/exercises/061_coercions.zig +++ b/exercises/061_coercions.zig @@ -11,7 +11,7 @@ // 2. Numeric types can coerce to _larger_ types. // // var n1: u8 = 5; -// var n2: u16 = n8; // integer "widening" +// var n2: u16 = n1; // integer "widening" // // var n3: f16 = 42.0; // var n4: f32 = n3; // float "widening" |