auto merge of #15614 : lucidd/rust/#15474, r=alexcrichton
This fixes #15474
This commit is contained in:
commit
5d200dd60d
@ -431,7 +431,10 @@ impl fmt::Show for clean::Type {
|
||||
}
|
||||
clean::Tuple(ref typs) => {
|
||||
primitive_link(f, clean::PrimitiveTuple,
|
||||
format!("({:#})", typs).as_slice())
|
||||
match typs.as_slice() {
|
||||
[ref one] => format!("({},)", one),
|
||||
many => format!("({:#})", many)
|
||||
}.as_slice())
|
||||
}
|
||||
clean::Vector(ref t) => {
|
||||
primitive_link(f, clean::Slice, format!("[{}]", **t).as_slice())
|
||||
|
Loading…
x
Reference in New Issue
Block a user