Skip to content

Commit 299e5d0

Browse files
eholktraviscross
andauthored
Apply suggestions from code review
Co-authored-by: Travis Cross <[email protected]>
1 parent 9b0e7f6 commit 299e5d0

File tree

2 files changed

+2
-2
lines changed
  • compiler

2 files changed

+2
-2
lines changed

compiler/rustc_ast_pretty/src/pprust/state/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ impl<'a> State<'a> {
774774
}
775775
}
776776
ast::ExprKind::Yield(e, YieldKind::Postfix) => {
777-
// it's not possible to have a postfix yield with no expression.
777+
// It's not possible to have a postfix yield with no expression.
778778
let e = e.as_ref().unwrap();
779779
self.print_expr_cond_paren(
780780
e,

compiler/rustc_parse/src/parser/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ impl<'a> Parser<'a> {
13111311
return self.parse_match_block(lo, match_span, self_arg, MatchKind::Postfix);
13121312
}
13131313

1314-
// Post-fix yield
1314+
// Parse a postfix `yield`.
13151315
if self.eat_keyword(exp!(Yield)) {
13161316
let yield_span = self.prev_token.span;
13171317
self.psess.gated_spans.gate(sym::yield_expr, yield_span);

0 commit comments

Comments
 (0)