Added quiz 6 (and the trumpeting sounds grow louder)
This commit is contained in:
parent
b12afaa577
commit
2d205d9645
4 changed files with 112 additions and 7 deletions
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);
|
||||
> }
|
||||
Loading…
Add table
Add a link
Reference in a new issue