This commit is contained in:
Adam Millerchip 2022-01-02 18:51:57 +09:00
parent ee685ad7b2
commit 78f538a19e
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ fn printSequence(my_seq: anytype) void {
print("Array:", .{});
// Loop through the items in my_seq.
for (???) |s| {
for (my_seq) |s| {
print("{}", .{s});
}
},
@ -93,7 +93,7 @@ fn printSequence(my_seq: anytype) void {
// Loop through the items in my_seq until we hit the
// sentinel value.
var i: usize = 0;
while (??? != my_sentinel) {
while (my_seq[i] != my_sentinel) {
print("{}", .{my_seq[i]});
i += 1;
}