Fix printing of parameterized tag types in ppaux
It was printing option::t[int] instead of option::t<int>
This commit is contained in:
parent
74e4b3b5c1
commit
7ed7e7fa79
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue