rustdoc: Add missing trailing comma for single element tuples

This commit is contained in:
Oliver Middleton 2016-01-28 21:02:22 +00:00
parent 552bf75e7d
commit ad5ab2f360

View File

@ -460,7 +460,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
[] => primitive_link(f, clean::PrimitiveTuple, "()"), [] => primitive_link(f, clean::PrimitiveTuple, "()"),
[ref one] => { [ref one] => {
try!(primitive_link(f, clean::PrimitiveTuple, "(")); try!(primitive_link(f, clean::PrimitiveTuple, "("));
try!(write!(f, "{}", one)); try!(write!(f, "{},", one));
primitive_link(f, clean::PrimitiveTuple, ")") primitive_link(f, clean::PrimitiveTuple, ")")
} }
many => { many => {