aboutsummaryrefslogtreecommitdiff
path: root/exercises/049_quiz6.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/049_quiz6.zig')
-rw-r--r--exercises/049_quiz6.zig10
1 files changed, 5 insertions, 5 deletions
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 {