1
0
Fork 0
mirror of https://codeberg.org/ziglings/exercises.git synced 2025-06-08 01:57:02 +09:00

fix: clarify comment in 046_optionals2

This commit is contained in:
psoukie 2024-05-18 15:17:41 -07:00
parent 776316e60b
commit 4d796a1bf9

View file

@ -30,7 +30,7 @@ pub fn main() void {
var elephantB = Elephant{ .letter = 'B' }; var elephantB = Elephant{ .letter = 'B' };
var elephantC = Elephant{ .letter = 'C' }; var elephantC = Elephant{ .letter = 'C' };
// Link the elephants so that each tail "points" to the next. // The tail of the last elephant is left "pointing" to nothing.
elephantA.tail = &elephantB; elephantA.tail = &elephantB;
elephantB.tail = &elephantC; elephantB.tail = &elephantC;