Fix HIR printing of yield

This commit is contained in:
John Kåre Alsaker 2017-09-03 12:42:28 +02:00 committed by Ariel Ben-Yehuda
parent 94a82adbb4
commit 1e6ec9f33a
1 changed files with 1 additions and 1 deletions

View File

@ -1495,7 +1495,7 @@ impl<'a> State<'a> {
self.pclose()?;
}
hir::ExprYield(ref expr) => {
self.s.word("yield")?;
self.word_space("yield")?;
self.print_expr_maybe_paren(&expr, parser::PREC_JUMP)?;
}
}