Skip to content

Commit

Permalink
auto merge of #15614 : lucidd/rust/#15474, r=alexcrichton
Browse files Browse the repository at this point in the history
This fixes #15474
  • Loading branch information
bors committed Jul 13, 2014
2 parents f606234 + 3d2fd5e commit 5d200dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustdoc/html/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5d200dd

Please sign in to comment.