From 7b40448a6f7ab9a3e291226bab9c4b4a48e83069 Mon Sep 17 00:00:00 2001 From: Joseph Roitman Date: Wed, 10 Nov 2021 12:37:18 +0200 Subject: [PATCH] Fix collection entry API documentation. --- library/std/src/collections/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/collections/mod.rs b/library/std/src/collections/mod.rs index a19c3431989c0..8b004525b4697 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