Skip to content

Commit de179f9

Browse files
committed
---
yaml --- r: 3804 b: refs/heads/master c: 55e3482 h: refs/heads/master v: v3
1 parent 0c0dcc5 commit de179f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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: 7340824cbcce104458d87200119b62dbfe0ef07a
2+
refs/heads/master: 55e348280efbaddd9b5b23617cdaa4f04cebefa0

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,11 +1121,11 @@ fn print_pat(&ps s, &@ast::pat pat) {
11211121
}
11221122
}
11231123
case (ast::pat_rec(?fields, ?etc)) {
1124-
bopen(s);
1124+
word(s.s, "{");
11251125
fn print_field(&ps s, &ast::field_pat f) {
11261126
cbox(s, indent_unit);
11271127
word(s.s, f.ident);
1128-
word(s.s, ":");
1128+
word_space(s, ":");
11291129
print_pat(s, f.pat);
11301130
end(s);
11311131
}
@@ -1134,7 +1134,7 @@ fn print_pat(&ps s, &@ast::pat pat) {
11341134
}
11351135
commasep_cmnt_ivec(s, consistent, fields, print_field, get_span);
11361136
if (etc) { space(s.s); word(s.s, "..."); }
1137-
bclose(s, pat.span);
1137+
word(s.s, "}");
11381138
}
11391139
}
11401140
s.ann.post(ann_node);

0 commit comments

Comments
 (0)