Skip to content

Commit 8911aef

Browse files
committed
Make return-by-ref function headers pretty-print safely
Closes #972
1 parent 1e988f2 commit 8911aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/syntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ fn print_fn_args_and_ret(s: ps, decl: ast::fn_decl, constrs: [@ast::constr]) {
11491149
ast::return_ref(mut, arg) {
11501150
word(s.s, mut ? "&!" : "&");
11511151
if vec::len(decl.inputs) > 1u {
1152-
word(s.s, std::uint::str(arg));
1152+
word_space(s, std::uint::str(arg));
11531153
}
11541154
}
11551155
_ {}

0 commit comments

Comments
 (0)