Skip to content

Commit 1dd4561

Browse files
Use "reflexive equality" in docs
1 parent bd4bd59 commit 1dd4561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_middle/ty/util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,9 @@ impl<'tcx> ty::TyS<'tcx> {
778778
}
779779
}
780780

781-
/// Returns `true` if equality for this type is both total and structural.
781+
/// Returns `true` if equality for this type is both reflexive and structural.
782782
///
783-
/// Total equality for a type is indicated by an `Eq` impl for that type.
783+
/// Reflexive equality for a type is indicated by an `Eq` impl for that type.
784784
///
785785
/// Primitive types (`u32`, `str`) have structural equality by definition. For composite data
786786
/// types, equality for the type as a whole is structural when it is the same as equality

0 commit comments

Comments
 (0)