about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-28 17:44:47 +0000
committerbors <bors@rust-lang.org>2021-05-28 17:44:47 +0000
commit0e44ca6dba86faf76daa7b06d9486f23812d4ccf (patch)
treec6b141c33f8780aad8523b915c4a395077e5ce05
parent6f9df55a782c5373c75dfa23e6ba50f8b42318ef (diff)
parent119bff124724646d4012a2d73042aae4d259685f (diff)
downloadrust-0e44ca6dba86faf76daa7b06d9486f23812d4ccf.tar.gz
rust-0e44ca6dba86faf76daa7b06d9486f23812d4ccf.zip
Auto merge of #85789 - ptrojahn:generator_typo, r=nagisa
Fix typo
-rw-r--r--compiler/rustc_middle/src/ty/subst.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/subst.rs b/compiler/rustc_middle/src/ty/subst.rs
index c84ca61122f..9b8d22d8eaf 100644
--- a/compiler/rustc_middle/src/ty/subst.rs
+++ b/compiler/rustc_middle/src/ty/subst.rs
@@ -197,7 +197,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
     }
 
     /// Interpret these substitutions as the substitutions of a generator type.
-    /// Closure substitutions have a particular structure controlled by the
+    /// Generator substitutions have a particular structure controlled by the
     /// compiler that encodes information like the signature and generator kind;
     /// see `ty::GeneratorSubsts` struct for more comments.
     pub fn as_generator(&'tcx self) -> GeneratorSubsts<'tcx> {