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.
1 parent aeab250 commit 3d2fd5eCopy full SHA for 3d2fd5e
src/librustdoc/html/format.rs
@@ -428,7 +428,10 @@ impl fmt::Show for clean::Type {
428
}
429
clean::Tuple(ref typs) => {
430
primitive_link(f, clean::PrimitiveTuple,
431
- format!("({:#})", typs).as_slice())
+ match typs.as_slice() {
432
+ [ref one] => format!("({},)", one),
433
+ many => format!("({:#})", many)
434
+ }.as_slice())
435
436
clean::Vector(ref t) => {
437
primitive_link(f, clean::Slice, format!("[{}]", **t).as_slice())
0 commit comments