]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_middle/src/ty/subst.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / compiler / rustc_middle / src / ty / subst.rs
index c84ca61122fe2faf19a12a76da17549fc04ec344..9b8d22d8eafcebc6d5fa5b2c3d3642217c1f22ab 100644 (file)
@@ -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> {