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

Incorrect doc for drain fn on hahsmap #98275

Closed
HaoranYi opened this issue Jun 20, 2022 · 1 comment · Fixed by #98281
Closed

Incorrect doc for drain fn on hahsmap #98275

HaoranYi opened this issue Jun 20, 2022 · 1 comment · Fixed by #98281
Assignees

Comments

@HaoranYi
Copy link

HaoranYi commented Jun 20, 2022

Problem

In rust doc for hashmap drain fn, it says "the returned iterator keeps a mutable borrow on the vector ...". Should it be "on the map..."?

https://doc.rust-lang.org/src/std/collections/hash/map.rs.html#550

@Noratrieb
Copy link
Member

@rustbot claim

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

Successfully merging a pull request may close this issue.

2 participants