mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-08-03 15:15:37 +00:00
12 lines
221 B
Diff
12 lines
221 B
Diff
28a29,31
|
|
> pub fn getTrunk(self: *Elephant) *Elephant {
|
|
> return self.trunk.?;
|
|
> }
|
|
30,31c33,35
|
|
< ???
|
|
<
|
|
---
|
|
> pub fn hasTrunk(self: *Elephant) bool {
|
|
> return (self.trunk != null);
|
|
> }
|