Skip to content

Commit

Permalink
(hopefully) fix pprust error
Browse files Browse the repository at this point in the history
  • Loading branch information
llogiq committed May 16, 2017
1 parent 958c67d commit 282b402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libsyntax/print/pprust.rs
Expand Up @@ -961,9 +961,11 @@ impl<'a> State<'a> {
{
self.rbox(0, b)?;
let len = elts.len();
for (i, elt) in elts.iter().enumerate() {
let mut i = 0;
for elt in elts {
self.maybe_print_comment(get_span(elt).hi)?;
op(self, elt)?;
i += 1;
if i < len {
word(&mut self.s, ",")?;
self.maybe_print_trailing_comment(get_span(elt),
Expand Down

0 comments on commit 282b402

Please sign in to comment.