summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-10-22 00:31:07 +0100
committerGitHub <noreply@github.com>2018-10-22 00:31:07 +0100
commitc675111095244f4430fd1c15b2de53c9e5281cb0 (patch)
tree389b13ce0a23401f4cf6786181bc222bcee846be
parent424a749a01224239ba2c8850f16007d57db0a242 (diff)
downloadrust-clean-two-dots.tar.gz
Correct trailing ellipsis in name_from_patclean-two-dots
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index db605e57735..2e6cc4bd54c 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -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))