about summary refs log tree commit diff
path: root/src/librustdoc/html/format.rs
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2016-01-28 21:02:22 +0000
committerOliver Middleton <olliemail27@gmail.com>2016-01-28 21:02:22 +0000
commitad5ab2f360d618b18c593368c0a16603f42bfdcb (patch)
tree98c5cb24dcd7e7498d6c08918b3787cd56b90e01 /src/librustdoc/html/format.rs
parent552bf75e7d689c42febc7798d31ae58d614418f9 (diff)
downloadrust-ad5ab2f360d618b18c593368c0a16603f42bfdcb.tar.gz
rust-ad5ab2f360d618b18c593368c0a16603f42bfdcb.zip
rustdoc: Add missing trailing comma for single element tuples
Diffstat (limited to 'src/librustdoc/html/format.rs')
-rw-r--r--src/librustdoc/html/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index b0df209d3dc..9d5189cfd0b 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -460,7 +460,7 @@ impl fmt::Display for clean::Type {
                     [] => primitive_link(f, clean::PrimitiveTuple, "()"),
                     [ref one] => {
                         try!(primitive_link(f, clean::PrimitiveTuple, "("));
-                        try!(write!(f, "{}", one));
+                        try!(write!(f, "{},", one));
                         primitive_link(f, clean::PrimitiveTuple, ")")
                     }
                     many => {