This commit is contained in:
ChrisMiuchiz 2021-04-24 19:33:08 -04:00
parent 14c7e73343
commit 4364ebcf4b

View file

@ -11,7 +11,7 @@ const Elephant = struct {
// New Elephant methods! // New Elephant methods!
pub fn getTail(self: *Elephant) *Elephant { 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 { pub fn hasTail(self: *Elephant) bool {