]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/ty/util.rs
Use "reflexive equality" in docs
[rust.git] / src / librustc_middle / ty / util.rs
index 252a11129beda03f2961000de4f992799baca131..c61e27528cef14f4c604890eb0d3af35a9d9b358 100644 (file)
@@ -778,9 +778,9 @@ pub fn needs_drop(&'tcx self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'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