diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-04-26 20:34:47 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-04-26 20:34:47 -0400 |
commit | fe6bf8948fd16b288fccf85f4f59d9d5925b14cc (patch) | |
tree | d6032ec6ca38d8f64964119c43206bbe177836f2 | |
parent | 98f4f5476a965ccd04fa9b0b3c2e26d60d4a2652 (diff) | |
parent | faec1675caeb3be2e193ba4f765e7279e4a42bd3 (diff) | |
download | ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.gz ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.bz2 ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.xz ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.zip |
Merge branch 'main' of github.com:ratfactor/ziglings into main
-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" |