-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityMedium priority
Description
Not a huge Rust user (Rust enthusiast!), but wasn't aware that square-bracket notation functioned for HashMaps. I see now that it's due to operator overloading via the Index interface, but newcomers to the language likely aren't going to be familiar with that.
Probably worth making it obvious that it's doable in the HashMap documentation? This example is currently the only place it shows up, somewhat sneakily
JoseAlban and frostblooded
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityMedium priority