From 5e572c720716a8348020b4399143abd149c2fd84 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Sat, 14 Oct 2023 15:22:41 -0700 Subject: [PATCH] Fix a spot I wrote the wrong word --- compiler/rustc_middle/src/ty/sty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index e5f418bbb4b..5ecc66b11f3 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -2848,7 +2848,7 @@ pub fn is_trivially_sized(self, tcx: TyCtxt<'tcx>) -> bool { /// Returning true means the type is known to be pure and `Copy+Clone`. /// Returning `false` means nothing -- could be `Copy`, might not be. /// - /// This is mostly useful for optimizations, as there are the types + /// This is mostly useful for optimizations, as these are the types /// on which we can replace cloning with dereferencing. pub fn is_trivially_pure_clone_copy(self) -> bool { match self.kind() {