aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-26 20:34:47 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-26 20:34:47 -0400
commitfe6bf8948fd16b288fccf85f4f59d9d5925b14cc (patch)
treed6032ec6ca38d8f64964119c43206bbe177836f2 /exercises
parent98f4f5476a965ccd04fa9b0b3c2e26d60d4a2652 (diff)
parentfaec1675caeb3be2e193ba4f765e7279e4a42bd3 (diff)
downloadziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.gz
ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.bz2
ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.tar.xz
ziglings-fe6bf8948fd16b288fccf85f4f59d9d5925b14cc.zip
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'exercises')
-rw-r--r--exercises/048_methods2.zig2
-rw-r--r--exercises/061_coercions.zig2
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"