Skip to content

Commit

Permalink
Auto merge of #85789 - ptrojahn:generator_typo, r=nagisa
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
bors committed May 28, 2021
2 parents 6f9df55 + 119bff1 commit 0e44ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/subst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 0e44ca6

Please sign in to comment.