Auto merge of #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 https://github.com/rust-lang/rust/pull/98180 (or rather, added the feature with a space included).
This commit is contained in:
commit
a19161043a
@ -1629,7 +1629,7 @@ mod prim_ref {}
|
||||
///
|
||||
/// ### Trait implementations
|
||||
///
|
||||
/// In this documentation the shorthand `fn (T₁, T₂, …, Tₙ)` is used to represent non-variadic
|
||||
/// In this documentation the shorthand `fn(T₁, T₂, …, Tₙ)` is used to represent non-variadic
|
||||
/// function pointers of varying length. Note that this is a convenience notation to avoid
|
||||
/// repetitive documentation, not valid Rust syntax.
|
||||
///
|
||||
|
@ -1305,7 +1305,7 @@ pub(crate) fn print<'a, 'tcx: 'a>(
|
||||
primitive_link_fragment(
|
||||
f,
|
||||
PrimitiveType::Tuple,
|
||||
format_args!("fn ({name}₁, {name}₂, …, {name}ₙ{ellipsis})"),
|
||||
format_args!("fn({name}₁, {name}₂, …, {name}ₙ{ellipsis})"),
|
||||
"#trait-implementations-1",
|
||||
cx,
|
||||
)?;
|
||||
|
Loading…
Reference in New Issue
Block a user