Skip to content

Commit 0e44ca6

Browse files
committed
Auto merge of #85789 - ptrojahn:generator_typo, r=nagisa
Fix typo
2 parents 6f9df55 + 119bff1 commit 0e44ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/subst.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
197197
}
198198

199199
/// Interpret these substitutions as the substitutions of a generator type.
200-
/// Closure substitutions have a particular structure controlled by the
200+
/// Generator substitutions have a particular structure controlled by the
201201
/// compiler that encodes information like the signature and generator kind;
202202
/// see `ty::GeneratorSubsts` struct for more comments.
203203
pub fn as_generator(&'tcx self) -> GeneratorSubsts<'tcx> {

0 commit comments

Comments
 (0)