Skip to content

Commit 88341a9

Browse files
authored
Rollup merge of rust-lang#55254 - rust-lang:clean-two-dots, r=GuillaumeGomez
Correct trailing ellipsis in name_from_pat r? @GuillaumeGomez
2 parents f46ee04 + c675111 commit 88341a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3632,7 +3632,7 @@ fn name_from_pat(p: &hir::Pat) -> String {
36323632
fields.iter().map(|&Spanned { node: ref fp, .. }|
36333633
format!("{}: {}", fp.ident, name_from_pat(&*fp.pat)))
36343634
.collect::<Vec<String>>().join(", "),
3635-
if etc { ", ..." } else { "" }
3635+
if etc { ", .." } else { "" }
36363636
)
36373637
}
36383638
PatKind::Tuple(ref elts, _) => format!("({})", elts.iter().map(|p| name_from_pat(&**p))

0 commit comments

Comments
 (0)