Skip to content

Commit 65db431

Browse files
committed
syntax: fix a pp bug on foreign mods.
1 parent 58a4a37 commit 65db431

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ fn print_item(s: ps, &&item: @ast::item) {
496496
ast::item_foreign_mod(nmod) => {
497497
head(s, visibility_qualified(item.vis, ~"extern"));
498498
print_string(s, *s.intr.get(nmod.abi));
499+
nbsp(s);
499500
match nmod.sort {
500501
ast::named => {
501502
word_nbsp(s, ~"mod");

0 commit comments

Comments
 (0)