From 2d205d9645b6c7947e3016fca98dfaf533d3f5e2 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 28 Feb 2021 13:51:33 -0500 Subject: Added quiz 6 (and the trumpeting sounds grow louder) --- patches/patches/49_quiz6.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/patches/49_quiz6.patch (limited to 'patches') diff --git a/patches/patches/49_quiz6.patch b/patches/patches/49_quiz6.patch new file mode 100644 index 0000000..83f9faf --- /dev/null +++ b/patches/patches/49_quiz6.patch @@ -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); +> } -- cgit v1.2.3-ZIG