mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Added quiz 6 (and the trumpeting sounds grow louder)
This commit is contained in:
11
patches/patches/49_quiz6.patch
Normal file
11
patches/patches/49_quiz6.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
28a29,31
|
||||
> pub fn getTrunk(self: *Elephant) *Elephant {
|
||||
> return self.trunk.?;
|
||||
> }
|
||||
30,31c33,35
|
||||
< ???
|
||||
<
|
||||
---
|
||||
> pub fn hasTrunk(self: *Elephant) bool {
|
||||
> return (self.trunk != null);
|
||||
> }
|
||||
Reference in New Issue
Block a user