Auto merge of #85789 - ptrojahn:generator_typo, r=nagisa

Fix typo
This commit is contained in:
bors 2021-05-28 17:44:47 +00:00
commit 0e44ca6dba

View 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> {