aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
Diffstat (limited to 'exercises')
-rw-r--r--exercises/047_methods.zig2
-rw-r--r--exercises/049_quiz6.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig
index c8e5c17..dcc3e13 100644
--- a/exercises/047_methods.zig
+++ b/exercises/047_methods.zig
@@ -32,7 +32,7 @@
// with the "dot syntax", the instance will be automatically
// passed as the "self" parameter:
//
-// const my_bar = Bar{ .number = 2000 };
+// var my_bar = Bar{ .number = 2000 };
// my_bar.printMe(); // prints "2000"
//
// Okay, you're armed.
diff --git a/exercises/049_quiz6.zig b/exercises/049_quiz6.zig
index b01a091..92541a5 100644
--- a/exercises/049_quiz6.zig
+++ b/exercises/049_quiz6.zig
@@ -17,7 +17,7 @@ const Elephant = struct {
// Elephant tail 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 {