Skip to content

Commit 9fd5856

Browse files
author
Timothée Haudebourg
committed
Fix typos in Equivalent documentation.
1 parent a115a7d commit 9fd5856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub use crate::set::HashSet;
120120
/// Key equivalence trait.
121121
///
122122
/// This trait defines the function used to compare the input value with the
123-
/// map keys (or set values) during a lookup operation sur as [`HashMap::get`]
123+
/// map keys (or set values) during a lookup operation such as [`HashMap::get`]
124124
/// or [`HashSet::contains`].
125125
/// It is provided with a blanket implementation based on the
126126
/// [`Borrow`](core::borrow::Borrow) trait.
@@ -131,7 +131,7 @@ pub use crate::set::HashSet;
131131
pub trait Equivalent<K: ?Sized> {
132132
/// Checks if this value is equivalent to the given key.
133133
///
134-
/// Returns `true` if oth values are equivalent, and `false` otherwise.
134+
/// Returns `true` if both values are equivalent, and `false` otherwise.
135135
///
136136
/// # Correctness
137137
///

0 commit comments

Comments
 (0)