Skip to content

Commit 7ed7e7f

Browse files
committed
Fix printing of parameterized tag types in ppaux
It was printing option::t[int] instead of option::t<int>
1 parent 74e4b3b commit 7ed7e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
121121
if vec::len::<t>(tps) > 0u {
122122
let strs: [str] = [];
123123
for typ: t in tps { strs += [ty_to_str(cx, typ)]; }
124-
s += "[" + str::connect(strs, ",") + "]";
124+
s += "<" + str::connect(strs, ",") + ">";
125125
}
126126
s
127127
}

0 commit comments

Comments
 (0)