Skip to content

Commit 219f231

Browse files
committed
---
yaml --- r: 2881 b: refs/heads/master c: 4eef7b6 h: refs/heads/master i: 2879: 4c1d3ee v: v3
1 parent 06011c8 commit 219f231

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 49742b86be15f391dc5153d5c9db3572f5142f83
2+
refs/heads/master: 4eef7b613c7f9435bec591376170791de41fa38c

trunk/src/comp/pretty/pprust.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ fn print_item(&ps s, &@ast::item item) {
285285
}
286286
case (ast::item_mod(?id,?_mod,_)) {
287287
head(s, "mod");
288+
word_nbsp(s, id);
288289
bopen(s);
289290
for (@ast::item itm in _mod.items) {print_item(s, itm);}
290291
bclose(s, item.span);
@@ -481,11 +482,11 @@ fn print_expr(&ps s, &@ast::expr expr) {
481482

482483
alt (expr.node) {
483484
case (ast::expr_vec(?exprs,?mut,_)) {
485+
ibox(s.s, indent_unit);
486+
word(s.s, "[");
484487
if (mut == ast::mut) {
485488
word_nbsp(s, "mutable");
486489
}
487-
ibox(s.s, indent_unit);
488-
word(s.s, "[");
489490
commasep_exprs(s, inconsistent, exprs);
490491
word(s.s, "]");
491492
end(s.s);

0 commit comments

Comments
 (0)