Skip to content

Commit 18e7dc5

Browse files
committed
---
yaml --- r: 4153 b: refs/heads/master c: 4070b75 h: refs/heads/master i: 4151: 5a81023 v: v3
1 parent c89f9ac commit 18e7dc5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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: e1769ab76f4e6c29b85e0dbc80e04af8b32fe44a
2+
refs/heads/master: 4070b75914cd3b6b891aa5868e77c1921e76eb62

trunk/src/comp/syntax/print/pprust.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ fn box(&ps s, uint u, pp::breaks b) {
147147
pp::box(s.s, u, b);
148148
}
149149

150-
fn word_nbsp(&ps s, str w) { word(s.s, w); word(s.s, " "); }
150+
fn nbsp(&ps s) { word(s.s, " "); }
151+
152+
fn word_nbsp(&ps s, str w) { word(s.s, w); nbsp(s); }
151153

152154
fn word_space(&ps s, str w) { word(s.s, w); space(s.s); }
153155

@@ -1064,7 +1066,7 @@ fn print_decl(&ps s, &@ast::decl decl) {
10641066
}
10651067
alt loc.node.init {
10661068
some(?init) {
1067-
space(s.s);
1069+
nbsp(s);
10681070
alt init.op {
10691071
ast::init_assign { word_space(s, "="); }
10701072
ast::init_move { word_space(s, "<-"); }

0 commit comments

Comments
 (0)