mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-06 10:13:29 +02:00
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user