mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-13 21:40:46 -05:00
commit
ab69eacb3f
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ const Elephant = struct {
|
||||||
|
|
||||||
// Elephant tail methods!
|
// Elephant tail 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 {
|
||||||
|
|
Loading…
Reference in a new issue