Skip to content

*Discussion*: Clarify comment in testcase_list #1876

Open
@propupul

Description

@propupul

I'm currently learning Rust and I noticed that the following comment in the "Testcase: List" section (https://doc.rust-lang.org/rust-by-example/hello/print/print_display/testcase_list.html) could be more precise:

Current comment :

// Extract the value using tuple indexing,
// and create a reference to `vec`.
let vec = &self.0;

This could, maybe, be improved to:

// Create a reference to the Vector<i32> stored in the List struct
let vec = &self.0;

I'm still learning, so I'm open to any feedback or explanations if I've misunderstood something.

Thank you for everything that you do! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions