Clarify 048,049 comments from instructions (issue #48)
This commit is contained in:
parent
05cefbfd17
commit
1bedf45294
2 changed files with 7 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue