Skip to content

Commit

Permalink
Rollup merge of #90758 - joseph-roitman:fix-entry-doc-key-ref, r=dtolnay
Browse files Browse the repository at this point in the history
Fix collections entry API documentation.

I found some documentation that seems out of date.
  • Loading branch information
matthiaskrgr authored Nov 10, 2021
2 parents 0a9c1be + 7b40448 commit 5f24975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/collections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
//! not. Normally, this would require a `find` followed by an `insert`,
//! effectively duplicating the search effort on each insertion.
//!
//! When a user calls `map.entry(&key)`, the map will search for the key and
//! When a user calls `map.entry(key)`, the map will search for the key and
//! then yield a variant of the `Entry` enum.
//!
//! If a `Vacant(entry)` is yielded, then the key *was not* found. In this case
Expand Down

0 comments on commit 5f24975

Please sign in to comment.