Skip to content

Commit

Permalink
rustdoc: fix regression when printing single-element tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Sep 27, 2016
1 parent fb442a7 commit 2a7d495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/format.rs
Expand Up @@ -565,7 +565,7 @@ impl fmt::Display for clean::Type {
primitive_link(f, PrimitiveType::Tuple, "(")?;
//carry f.alternate() into this display w/o branching manually
fmt::Display::fmt(one, f)?;
primitive_link(f, PrimitiveType::Tuple, ")")
primitive_link(f, PrimitiveType::Tuple, ",)")
}
many => {
primitive_link(f, PrimitiveType::Tuple, "(")?;
Expand Down

0 comments on commit 2a7d495

Please sign in to comment.