Skip to content

Commit 7ba1538

Browse files
committed
Doc typo
1 parent 1b295f4 commit 7ba1538

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/collections/hash

1 file changed

+2
-2
lines changed

library/std/src/collections/hash/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ impl<'a, K, V> Entry<'a, K, V> {
28232823
/// Ensures a value is in the entry by inserting the result of a fallible default function
28242824
/// if empty, and returns a mutable reference to the value in the entry.
28252825
///
2826-
/// This methods works identically to [`or_insert_with`] except that the default function
2826+
/// This method works identically to [`or_insert_with`] except that the default function
28272827
/// should return a `Result` and, in the case of an error, the error is propagated.
28282828
///
28292829
/// [`or_insert_with`]: Self::or_insert_with
@@ -2884,7 +2884,7 @@ impl<'a, K, V> Entry<'a, K, V> {
28842884
/// This method allows for generating key-derived values for insertion by providing the default
28852885
/// function a reference to the key that was moved during the `entry(key)` method call.
28862886
///
2887-
/// This methods works identically to [`or_insert_with_key`] except that the default function
2887+
/// This method works identically to [`or_insert_with_key`] except that the default function
28882888
/// should return a `Result` and, in the case of an error, the error is propagated.
28892889
///
28902890
/// [`or_insert_with_key`]: Self::or_insert_with_key

0 commit comments

Comments
 (0)