about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-06-11 08:30:46 -0700
committerMichael Howell <michael@notriddle.com>2022-06-11 09:54:20 -0700
commit9b31323b8f784ebb8689bb11489caefadb552f60 (patch)
tree8ad3ee74ad79b6888a26cdcc425b531ef683b231 /src/librustdoc
parent9f6dcceef0bf2f455c29e8863413604b58e2b6b5 (diff)
downloadrust-9b31323b8f784ebb8689bb11489caefadb552f60.tar.gz
rust-9b31323b8f784ebb8689bb11489caefadb552f60.zip
Fix incorrectly spelled "variadic"
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/clean/inline.rs2
-rw-r--r--src/librustdoc/clean/mod.rs2
-rw-r--r--src/librustdoc/clean/types.rs2
-rw-r--r--src/librustdoc/html/format.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs
index d8f6a9c3ff0..d4c38f34b5b 100644
--- a/src/librustdoc/clean/inline.rs
+++ b/src/librustdoc/clean/inline.rs
@@ -500,7 +500,7 @@ pub(crate) fn build_impl(
             for_,
             items: trait_items,
             polarity,
-            kind: if utils::has_doc_flag(tcx, did, sym::tuple_varadic) {
+            kind: if utils::has_doc_flag(tcx, did, sym::tuple_variadic) {
                 ImplKind::TupleVaradic
             } else {
                 ImplKind::Normal
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index b15ef424cb6..fd30691c324 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -1999,7 +1999,7 @@ fn clean_impl<'tcx>(
             for_,
             items,
             polarity: tcx.impl_polarity(def_id),
-            kind: if utils::has_doc_flag(tcx, def_id.to_def_id(), sym::tuple_varadic) {
+            kind: if utils::has_doc_flag(tcx, def_id.to_def_id(), sym::tuple_variadic) {
                 ImplKind::TupleVaradic
             } else {
                 ImplKind::Normal
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index f77884370f5..83ab9acd300 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -2407,7 +2407,7 @@ impl ImplKind {
         matches!(self, ImplKind::Blanket(_))
     }
 
-    pub(crate) fn is_tuple_varadic(&self) -> bool {
+    pub(crate) fn is_tuple_variadic(&self) -> bool {
         matches!(self, ImplKind::TupleVaradic)
     }
 
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 2f433c2313b..69bd0744a10 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1076,7 +1076,7 @@ impl clean::Impl {
 
             if let clean::Type::Tuple(types) = &self.for_ &&
                 let [clean::Type::Generic(name)] = &types[..] &&
-                (self.kind.is_tuple_varadic() || self.kind.is_auto()) {
+                (self.kind.is_tuple_variadic() || self.kind.is_auto()) {
                 primitive_link_fragment(f, PrimitiveType::Tuple, &format!("({name}, ...)"), "#trait-implementations-1", cx)?;
             } else if let Some(ty) = self.kind.as_blanket_ty() {
                 fmt_type(ty, f, use_absolute, cx)?;