Skip to content

Commit

Permalink
rustdoc: Add missing trailing comma for single element tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
ollie27 committed Jan 28, 2016
1 parent 552bf75 commit ad5ab2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/format.rs
Expand Up @@ -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 => {
Expand Down

0 comments on commit ad5ab2f

Please sign in to comment.