Skip to content

Commit 28b1473

Browse files
committed
Fix anon-extern-mod pretty print test.
1 parent cf38618 commit 28b1473

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,12 @@ fn print_item(s: ps, &&item: @ast::item) {
467467
}
468468
ast::item_foreign_mod(nmod) => {
469469
head(s, ~"extern");
470-
word_nbsp(s, ~"mod");
471470
match nmod.sort {
472-
ast::named => print_ident(s, item.ident),
473-
ast::anonymous => {}
471+
ast::named => {
472+
word_nbsp(s, ~"mod");
473+
print_ident(s, item.ident)
474+
}
475+
ast::anonymous => {}
474476
}
475477
nbsp(s);
476478
bopen(s);

0 commit comments

Comments
 (0)