We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5f826a + e6c8e5d commit 0d7964dCopy full SHA for 0d7964d
src/hello/print/print_display/testcase_list.md
@@ -31,11 +31,11 @@ impl fmt::Display for List {
31
write!(f, "[")?;
32
33
// Iterate over `v` in `vec` while enumerating the iteration
34
- // count in `count`.
35
- for (count, v) in vec.iter().enumerate() {
+ // index in `index`.
+ for (index, v) in vec.iter().enumerate() {
36
// For every element except the first, add a comma.
37
// Use the ? operator to return on errors.
38
- if count != 0 { write!(f, ", ")?; }
+ if index != 0 { write!(f, ", ")?; }
39
write!(f, "{}", v)?;
40
}
41
0 commit comments