Skip to content

Commit a191610

Browse files
committed
Auto merge of rust-lang#118321 - WaffleLapkin:unspace-fn-pointer-fake-variadic, r=notriddle
rustdoc: Remove space from fake-variadic fn ptr impls before: `for fn (T₁, T₂, …, Tₙ) -> Ret` after: `for fn(T₁, T₂, …, Tₙ) -> Ret` I don't think we usually have spaces there, so it looks weird. cc `@notriddle` since you added the space in rust-lang#98180 (or rather, added the feature with a space included).
2 parents 601a427 + 1a3c5c4 commit a191610

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/primitive_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ mod prim_ref {}
16291629
///
16301630
/// ### Trait implementations
16311631
///
1632-
/// In this documentation the shorthand `fn (T₁, T₂, …, Tₙ)` is used to represent non-variadic
1632+
/// In this documentation the shorthand `fn(T₁, T₂, …, Tₙ)` is used to represent non-variadic
16331633
/// function pointers of varying length. Note that this is a convenience notation to avoid
16341634
/// repetitive documentation, not valid Rust syntax.
16351635
///

src/librustdoc/html/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ impl clean::Impl {
13051305
primitive_link_fragment(
13061306
f,
13071307
PrimitiveType::Tuple,
1308-
format_args!("fn ({name}₁, {name}₂, …, {name}ₙ{ellipsis})"),
1308+
format_args!("fn({name}₁, {name}₂, …, {name}ₙ{ellipsis})"),
13091309
"#trait-implementations-1",
13101310
cx,
13111311
)?;

0 commit comments

Comments
 (0)