1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-18 10:46:05 +02:00

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

This commit is contained in:
Dave Gauer 2021-05-13 19:48:13 -04:00
commit 1bf1f682ff
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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 {