-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Add doc example to HashMap::hasher #44794
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! just one small comment about whitespace
@@ -691,6 +691,16 @@ impl<K, V, S> HashMap<K, V, S> | |||
/// Returns a reference to the map's [`BuildHasher`]. | |||
/// | |||
/// [`BuildHasher`]: ../../std/hash/trait.BuildHasher.html | |||
/// | |||
/// # Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might need a newline after this for rustdoc+markdown to treat it as a doc test
Now please squash your commits and we're good to go! |
📌 Commit bc43e17 has been approved by |
Add doc example to HashMap::hasher None
☔ The latest upstream changes (presumably #44936) made this pull request unmergeable. Please resolve the merge conflicts. |
Merged in #44936. |
No description provided.