Browse Source

Merge branch 'main' of github.com:ratfactor/ziglings into main

Dave Gauer 4 years ago
parent
commit
7ef800c1bf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      exercises/047_methods.zig
  2. 1 1
      exercises/049_quiz6.zig

+ 1 - 1
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.

+ 1 - 1
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 {