about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-15 11:37:24 +0200
committerGitHub <noreply@github.com>2023-10-15 11:37:24 +0200
commit23d8847ae93f8525f095fb0aca18f89c223ff1cb (patch)
treea80cd8e77ee5f975f3a5df01288ebad95d2f02fc
parentfb1f8dd95001c29cc4c9b757aa7976c26f252546 (diff)
parent5e572c720716a8348020b4399143abd149c2fd84 (diff)
downloadrust-23d8847ae93f8525f095fb0aca18f89c223ff1cb.tar.gz
rust-23d8847ae93f8525f095fb0aca18f89c223ff1cb.zip
Rollup merge of #116748 - scottmcm:oops-typo, r=fee1-dead
Fix a spot I wrote the wrong word

I was reading this comment while I was looking at #116505, and it garden-path-sentence'd me, so fix that for people in the future.
-rw-r--r--compiler/rustc_middle/src/ty/sty.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ impl<'tcx> Ty<'tcx> {
     /// 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() {