1
Fork 0

rustdoc: change "variadic tuple" notation to look less like real syntax

This commit is contained in:
Michael Howell 2022-06-14 12:21:38 -07:00
parent 94396711dd
commit 2bbf44f655
3 changed files with 9 additions and 9 deletions

View file

@ -1079,7 +1079,7 @@ impl clean::Impl {
(self.kind.is_tuple_variadic() || self.kind.is_auto()) {
// Hardcoded anchor library/core/src/primitive_docs.rs
// Link should match `# Trait implementations`
primitive_link_fragment(f, PrimitiveType::Tuple, &format!("({name}, ...)"), "#trait-implementations-1", cx)?;
primitive_link_fragment(f, PrimitiveType::Tuple, &format!("({name}₁, {name}₂, …, {name})"), "#trait-implementations-1", cx)?;
} else if let Some(ty) = self.kind.as_blanket_ty() {
fmt_type(ty, f, use_absolute, cx)?;
} else {