Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*Discussion*: Clarify comment in testcase_list #1876

Open
propupul opened this issue Aug 22, 2024 · 0 comments
Open

*Discussion*: Clarify comment in testcase_list #1876

propupul opened this issue Aug 22, 2024 · 0 comments

Comments

@propupul
Copy link

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! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant