Skip to content

Commit 0eb257e

Browse files
committed
Minor pp cleanups.
1 parent 6d441d3 commit 0eb257e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/comp/pretty/pprust.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ fn print_expr(&ps s, &@ast::expr expr) {
825825
case (ast::expr_fail(?str)) {
826826
word(s.s, "fail");
827827
alt (str) {
828-
case (some(?msg)) { word(s.s, #fmt("\"%s\"", msg)); }
828+
case (some(?msg)) { word(s.s, #fmt(" \"%s\"", msg)); }
829829
case (_) { }
830830
}
831831
}
@@ -887,7 +887,7 @@ fn print_expr(&ps s, &@ast::expr expr) {
887887

888888
}
889889
case (ast::expr_port(?ot)) {
890-
word(s.s, "port");
890+
word(s.s, "port");
891891
alt(ot) {
892892
case(some(?t)) {
893893
word(s.s, "[");
@@ -896,7 +896,7 @@ fn print_expr(&ps s, &@ast::expr expr) {
896896
}
897897
case(none) {}
898898
}
899-
popen(s); pclose(s);
899+
popen(s); pclose(s);
900900
}
901901
case (ast::expr_chan(?expr)) {
902902
word(s.s, "chan");
@@ -1230,7 +1230,7 @@ fn maybe_print_trailing_comment(&ps s, common::span span,
12301230
auto next = cmnt.pos + 1u;
12311231
alt (next_pos) { case (none) { } case (some(?p)) { next = p; } }
12321232
if (span.hi < cmnt.pos && cmnt.pos < next &&
1233-
span_line.line == comment_line.line) {
1233+
span_line.line == comment_line.line) {
12341234
print_comment(s, cmnt);
12351235
s.cur_cmnt += 1u;
12361236
}

0 commit comments

Comments
 (0)