Skip to content

Commit

Permalink
Rollup merge of rust-lang#55254 - rust-lang:clean-two-dots, r=Guillau…
Browse files Browse the repository at this point in the history
…meGomez

Correct trailing ellipsis in name_from_pat

r? @GuillaumeGomez
  • Loading branch information
pietroalbini committed Oct 23, 2018
2 parents a2f3cc3 + c675111 commit 9dcdb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,7 @@ fn name_from_pat(p: &hir::Pat) -> String {
fields.iter().map(|&Spanned { node: ref fp, .. }|
format!("{}: {}", fp.ident, name_from_pat(&*fp.pat)))
.collect::<Vec<String>>().join(", "),
if etc { ", ..." } else { "" }
if etc { ", .." } else { "" }
)
}
PatKind::Tuple(ref elts, _) => format!("({})", elts.iter().map(|p| name_from_pat(&**p))
Expand Down

0 comments on commit 9dcdb63

Please sign in to comment.