Skip to content

Commit 5f24975

Browse files
authored
Rollup merge of rust-lang#90758 - joseph-roitman:fix-entry-doc-key-ref, r=dtolnay
Fix collections entry API documentation. I found some documentation that seems out of date.
2 parents 0a9c1be + 7b40448 commit 5f24975

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/collections

1 file changed

+1
-1
lines changed

library/std/src/collections/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
//! not. Normally, this would require a `find` followed by an `insert`,
269269
//! effectively duplicating the search effort on each insertion.
270270
//!
271-
//! When a user calls `map.entry(&key)`, the map will search for the key and
271+
//! When a user calls `map.entry(key)`, the map will search for the key and
272272
//! then yield a variant of the `Entry` enum.
273273
//!
274274
//! If a `Vacant(entry)` is yielded, then the key *was not* found. In this case

0 commit comments

Comments
 (0)