about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSergi-Ferrez <sergiferrezpuig@gmail.com>2024-06-04 13:49:39 +0200
committerSergi-Ferrez <sergiferrezpuig@gmail.com>2024-06-04 13:49:39 +0200
commit617e64c9e7233ec1f936b8e14c30037fc3f6a1be (patch)
tree94434fbc722a278a6668d47cccbebc596ec517a9 /src
parentb7a8f1f225db2fef723317a4bfb4cc649cc9ff84 (diff)
Update code format and tests
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/format.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index de92fb80b93..ff49f65ed08 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1431,7 +1431,7 @@ impl clean::FnDecl {
         cx: &Context<'_>,
     ) -> fmt::Result {
         let amp = if f.alternate() { "&" } else { "&amp;" };
-        
+
         write!(f, "(")?;
         if let Some(n) = line_wrapping_indent
             && !self.inputs.values.is_empty()
@@ -1483,7 +1483,7 @@ impl clean::FnDecl {
 
         if self.c_variadic {
             match line_wrapping_indent {
-                None => write!(f, "...")?,
+                None => write!(f, ", ...")?,
                 Some(n) => write!(f, "{}...\n", Indent(n + 4))?,
             };
         }