We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f9df55 + 119bff1 commit 0e44ca6Copy full SHA for 0e44ca6
compiler/rustc_middle/src/ty/subst.rs
@@ -197,7 +197,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
197
}
198
199
/// Interpret these substitutions as the substitutions of a generator type.
200
- /// Closure substitutions have a particular structure controlled by the
+ /// Generator substitutions have a particular structure controlled by the
201
/// compiler that encodes information like the signature and generator kind;
202
/// see `ty::GeneratorSubsts` struct for more comments.
203
pub fn as_generator(&'tcx self) -> GeneratorSubsts<'tcx> {
0 commit comments