Fix printing of parameterized tag types in ppaux

It was printing option::t[int] instead of option::t<int>
This commit is contained in:
Marijn Haverbeke 2011-11-02 11:27:32 +01:00
parent 74e4b3b5c1
commit 7ed7e7fa79
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
if vec::len::<t>(tps) > 0u {
let strs: [str] = [];
for typ: t in tps { strs += [ty_to_str(cx, typ)]; }
s += "[" + str::connect(strs, ",") + "]";
s += "<" + str::connect(strs, ",") + ">";
}
s
}