From e6c8e5d2cde849c2a657efde504a3feede70fcfa Mon Sep 17 00:00:00 2001 From: Reed Moseng Date: Sun, 6 Apr 2025 19:00:07 -0700 Subject: [PATCH] Rename count to index for clarity --- src/hello/print/print_display/testcase_list.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hello/print/print_display/testcase_list.md b/src/hello/print/print_display/testcase_list.md index d07316b724..c72c197ed3 100644 --- a/src/hello/print/print_display/testcase_list.md +++ b/src/hello/print/print_display/testcase_list.md @@ -31,11 +31,11 @@ impl fmt::Display for List { write!(f, "[")?; // Iterate over `v` in `vec` while enumerating the iteration - // count in `count`. - for (count, v) in vec.iter().enumerate() { + // index in `index`. + for (index, v) in vec.iter().enumerate() { // For every element except the first, add a comma. // Use the ? operator to return on errors. - if count != 0 { write!(f, ", ")?; } + if index != 0 { write!(f, ", ")?; } write!(f, "{}", v)?; }