Skip to content

Commit

Permalink
Correct trailing ellipsis in name_from_pat
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Oct 21, 2018
1 parent 424a749 commit c675111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/mod.rs
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 c675111

Please sign in to comment.