We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f606234 + 3d2fd5e commit 5d200ddCopy full SHA for 5d200dd
src/librustdoc/html/format.rs
@@ -431,7 +431,10 @@ impl fmt::Show for clean::Type {
431
}
432
clean::Tuple(ref typs) => {
433
primitive_link(f, clean::PrimitiveTuple,
434
- format!("({:#})", typs).as_slice())
+ match typs.as_slice() {
435
+ [ref one] => format!("({},)", one),
436
+ many => format!("({:#})", many)
437
+ }.as_slice())
438
439
clean::Vector(ref t) => {
440
primitive_link(f, clean::Slice, format!("[{}]", **t).as_slice())
0 commit comments