about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-10 18:52:30 +0100
committerGitHub <noreply@github.com>2021-11-10 18:52:30 +0100
commit5f2497541fb39699ac3c208c6b0944ac39cec565 (patch)
treeef011d09272715b6898e45b6a0c211f363dcfb76
parent0a9c1be1007b8f825632fc451db8be43f781ca65 (diff)
parent7b40448a6f7ab9a3e291226bab9c4b4a48e83069 (diff)
downloadrust-5f2497541fb39699ac3c208c6b0944ac39cec565.tar.gz
rust-5f2497541fb39699ac3c208c6b0944ac39cec565.zip
Rollup merge of #90758 - joseph-roitman:fix-entry-doc-key-ref, r=dtolnay
Fix collections entry API documentation.

I found some documentation that seems out of date.
-rw-r--r--library/std/src/collections/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/collections/mod.rs b/library/std/src/collections/mod.rs
index a19c3431989..8b004525b46 100644
--- a/library/std/src/collections/mod.rs
+++ b/library/std/src/collections/mod.rs
@@ -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