mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
Fix typo in StructuralPartialEq docs
`equialent` => `equivalent`
This commit is contained in:
@@ -200,7 +200,7 @@ pub trait Unsize<T: ?Sized> {
|
||||
///
|
||||
/// Constants are only allowed as patterns if (a) their type implements
|
||||
/// `PartialEq`, and (b) interpreting the value of the constant as a pattern
|
||||
/// is equialent to calling `PartialEq`. This ensures that constants used as
|
||||
/// is equivalent to calling `PartialEq`. This ensures that constants used as
|
||||
/// patterns cannot expose implementation details in an unexpected way or
|
||||
/// cause semver hazards.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user