Skip to content

Commit ad5ab2f

Browse files
committed
rustdoc: Add missing trailing comma for single element tuples
1 parent 552bf75 commit ad5ab2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ impl fmt::Display for clean::Type {
460460
[] => primitive_link(f, clean::PrimitiveTuple, "()"),
461461
[ref one] => {
462462
try!(primitive_link(f, clean::PrimitiveTuple, "("));
463-
try!(write!(f, "{}", one));
463+
try!(write!(f, "{},", one));
464464
primitive_link(f, clean::PrimitiveTuple, ")")
465465
}
466466
many => {

0 commit comments

Comments
 (0)