Skip to content

Commit

Permalink
unify terms
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed Oct 16, 2022
1 parent 5d9da9a commit 685a0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ for number in numbers {
}
// 输出 2, 4, 8
// 对于数组的 foreach,可以使用带索引的遍历法
// 对于数组的 foreach,可以使用带下标的遍历法
for i, number in numbers {
// i 变量代表现在遍历到哪个索引下的元素
// i 变量为现在遍历到哪个下标下的元素
print("Index: " + i + ", Element: " + number);
}

Expand Down

0 comments on commit 685a0bf

Please sign in to comment.