Use "reflexive equality" in docs

This commit is contained in:
Dylan MacKenzie 2020-06-12 08:47:13 -07:00
parent bd4bd59ad7
commit 1dd45612f8
1 changed files with 2 additions and 2 deletions

View File

@ -778,9 +778,9 @@ impl<'tcx> ty::TyS<'tcx> {
}
}
/// Returns `true` if equality for this type is both total and structural.
/// Returns `true` if equality for this type is both reflexive and structural.
///
/// Total equality for a type is indicated by an `Eq` impl for that type.
/// Reflexive equality for a type is indicated by an `Eq` impl for that type.
///
/// Primitive types (`u32`, `str`) have structural equality by definition. For composite data
/// types, equality for the type as a whole is structural when it is the same as equality