Skip to content

Commit 8235e76

Browse files
committed
Tidy up printing of ty_fn.
1 parent 429e214 commit 8235e76

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/comp/pretty/pprust.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,13 @@ fn print_ty_fn(&ps s, &ast::proto proto, &option::t[str] id,
12081208
if (proto == ast::proto_fn) {word(s.s, "fn");}
12091209
else {word(s.s, "iter");}
12101210
alt (id) {
1211-
case (some(?id)) {space(s.s); word(s.s, id);}
1211+
case (some(?id)) {
1212+
word(s.s, " ");
1213+
word(s.s, id);
1214+
}
12121215
case (_) {}
12131216
}
1217+
zerobreak(s.s);
12141218
popen(s);
12151219
fn print_arg(&ps s, &ast::ty_arg input) {
12161220
if (input.mode == ast::alias) {word(s.s, "&");}

0 commit comments

Comments
 (0)