Skip to content

Commit 61d1ebe

Browse files
RalfJungteor2345
andauthored
fix typo
Co-authored-by: teor <[email protected]>
1 parent baaf6d7 commit 61d1ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/cmp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use self::Ordering::*;
8787
/// *not* do `impl PartialEq<LocalType> for ForeignType`.
8888
///
8989
/// This avoids the problem of transitive chains that criss-cross crate boundaries: for all local
90-
/// types `T`, you may assue that no other crate will add `impl`s that allow comparing `T == U`. In
90+
/// types `T`, you may assume that no other crate will add `impl`s that allow comparing `T == U`. In
9191
/// other words, if other crates add `impl`s that allow building longer transitive chains `U1 == ...
9292
/// == T == V1 == ...`, then all the types that appear to the right of `T` must be types that the
9393
/// crate defining `T` already knows about. This rules out transitive chains where downstream crates
@@ -967,7 +967,7 @@ pub macro Ord($item:item) {
967967
/// *not* do `impl PartialOrd<LocalType> for ForeignType`.
968968
///
969969
/// This avoids the problem of transitive chains that criss-cross crate boundaries: for all local
970-
/// types `T`, you may assue that no other crate will add `impl`s that allow comparing `T < U`. In
970+
/// types `T`, you may assume that no other crate will add `impl`s that allow comparing `T < U`. In
971971
/// other words, if other crates add `impl`s that allow building longer transitive chains `U1 < ...
972972
/// < T < V1 < ...`, then all the types that appear to the right of `T` must be types that the crate
973973
/// defining `T` already knows about. This rules out transitive chains where downstream crates can

0 commit comments

Comments
 (0)