Skip to content

Commit 4a7b2f7

Browse files
committed
---
yaml --- r: 2856 b: refs/heads/master c: 371c256 h: refs/heads/master v: v3
1 parent 0739a97 commit 4a7b2f7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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: 1676c6744643cf7169250fbba242d65eb73edd8a
2+
refs/heads/master: 371c25683c60fd674368a7a82dfb64e6170b6805

trunk/src/comp/pretty/pprust.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ fn print_type(ps s, &@ast::ty ty) {
235235
head(s, "obj");
236236
bopen(s);
237237
for (ast::ty_method m in methods) {
238+
hardbreak(s.s);
238239
cbox(s.s, indent_unit);
239240
print_ty_fn(s, m.proto, option::some[str](m.ident),
240241
m.inputs, m.output, m.cf);
@@ -1045,6 +1046,7 @@ fn print_string(ps s, str st) {
10451046
fn print_ty_fn(ps s, ast::proto proto, option::t[str] id,
10461047
vec[ast::ty_arg] inputs, @ast::ty output,
10471048
ast::controlflow cf) {
1049+
ibox(s.s, indent_unit);
10481050
if (proto == ast::proto_fn) {word(s.s, "fn");}
10491051
else {word(s.s, "iter");}
10501052
alt (id) {
@@ -1074,6 +1076,7 @@ fn print_ty_fn(ps s, ast::proto proto, option::t[str] id,
10741076
}
10751077
end(s.s);
10761078
}
1079+
end(s.s);
10771080
}
10781081

10791082
fn next_comment(ps s) -> option::t[lexer::cmnt] {

0 commit comments

Comments
 (0)