Skip to content

Commit f7ad590

Browse files
authored
Merge pull request #2005 from Abhinav-ranish/fix/1876-testcase-list-comment
fix: clarify comment about tuple struct field access in testcase_list
2 parents 6f99c15 + c7bcb49 commit f7ad590

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/hello/print/print_display/testcase_list.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ struct List(Vec<i32>);
2424
2525
impl fmt::Display for List {
2626
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
27-
// Extract the value using tuple indexing,
28-
// and create a reference to `vec`.
27+
// Create a reference to the Vec<i32> stored in the List struct.
2928
let vec = &self.0;
3029
3130
write!(f, "[")?;

0 commit comments

Comments
 (0)