diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-04-27 15:16:38 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-04-27 15:16:38 -0400 |
commit | 1bedf452946a4efb74ab83060aa534fc37f11803 (patch) | |
tree | b41538a1bfd3b6ce1db5eb13895da7cc85bf260e /exercises | |
parent | 05cefbfd17db399ca152bc82fee1d2f2993cfe65 (diff) | |
download | ziglings-1bedf452946a4efb74ab83060aa534fc37f11803.tar.gz ziglings-1bedf452946a4efb74ab83060aa534fc37f11803.tar.bz2 ziglings-1bedf452946a4efb74ab83060aa534fc37f11803.tar.xz ziglings-1bedf452946a4efb74ab83060aa534fc37f11803.zip |
Clarify 048,049 comments from instructions (issue #48)
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/048_methods2.zig | 4 | ||||
-rw-r--r-- | exercises/049_quiz6.zig | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/exercises/048_methods2.zig b/exercises/048_methods2.zig index 3ce6a6c..310867a 100644 --- a/exercises/048_methods2.zig +++ b/exercises/048_methods2.zig @@ -34,7 +34,7 @@ pub fn main() void { var elephantB = Elephant{ .letter = 'B' }; var elephantC = Elephant{ .letter = 'C' }; - // Link the elephants so that each tail "points" to the next. + // This links the elephants so that each tail "points" to the next. elephantA.tail = &elephantB; elephantB.tail = &elephantC; @@ -52,7 +52,7 @@ fn visitElephants(first_elephant: *Elephant) void { e.print(); e.visit(); - // Get the next elephant or stop. + // This gets the next elephant or stops. if (e.hasTail()) { e = e.???; // Which method do we want here? } else { diff --git a/exercises/049_quiz6.zig b/exercises/049_quiz6.zig index a1a1dec..b01a091 100644 --- a/exercises/049_quiz6.zig +++ b/exercises/049_quiz6.zig @@ -47,7 +47,7 @@ pub fn main() void { var elephantB = Elephant{ .letter = 'B' }; var elephantC = Elephant{ .letter = 'C' }; - // Link the elephants so that each tail "points" to the next. + // We link the elephants so that each tail "points" to the next. elephantA.tail = &elephantB; elephantB.tail = &elephantC; @@ -64,12 +64,12 @@ pub fn main() void { fn visitElephants(first_elephant: *Elephant) void { var e = first_elephant; - // Follow the tails! + // We follow the tails! while (true) { e.print(); e.visit(); - // Get the next elephant or stop. + // This gets the next elephant or stops. if (e.hasTail()) { e = e.getTail(); } else { @@ -77,11 +77,11 @@ fn visitElephants(first_elephant: *Elephant) void { } } - // Follow the trunks! + // We follow the trunks! while (true) { e.print(); - // Get the previous elephant or stop. + // This gets the previous elephant or stops. if (e.hasTrunk()) { e = e.getTrunk(); } else { |