mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-07 08:14:47 +00:00
commit
0412719095
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user