Skip to content

Commit ed59fd9

Browse files
committed
change doc phrasing
1 parent 37e1298 commit ed59fd9

File tree

2 files changed

+8
-1617
lines changed

2 files changed

+8
-1617
lines changed

library/core/src/primitive_docs.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -1671,11 +1671,16 @@ mod prim_ref {}
16711671
#[stable(feature = "rust1", since = "1.0.0")]
16721672
mod prim_fn {}
16731673

1674+
// Required to make auto trait impls render.
1675+
// See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
1676+
#[doc(hidden)]
1677+
impl<Ret, T> fn(T) -> Ret {}
1678+
16741679
// Fake impl that's only really used for docs.
16751680
#[cfg(doc)]
16761681
#[stable(feature = "rust1", since = "1.0.0")]
16771682
#[doc(fake_variadic)]
1678-
/// This trait is implemented on function pointers with any number of arguments.
1683+
/// This trait is implemented on all function pointers.
16791684
impl<Ret, T> Clone for fn(T) -> Ret {
16801685
fn clone(&self) -> Self {
16811686
loop {}
@@ -1686,7 +1691,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
16861691
#[cfg(doc)]
16871692
#[stable(feature = "rust1", since = "1.0.0")]
16881693
#[doc(fake_variadic)]
1689-
/// This trait is implemented on function pointers with any number of arguments.
1694+
/// This trait is implemented on all function pointers.
16901695
impl<Ret, T> Copy for fn(T) -> Ret {
16911696
// empty
16921697
}
@@ -1699,14 +1704,9 @@ impl<Ret, T> Copy for fn(T) -> Ret {
16991704
reason = "internal trait for implementing various traits for all function pointers"
17001705
)]
17011706
#[doc(fake_variadic)]
1702-
/// This trait is implemented on function pointers with any number of arguments.
1707+
/// This trait is implemented on all function pointers.
17031708
impl<Ret, T> FnPtr for fn(T) -> Ret {
17041709
fn addr(self) -> *const () {
17051710
// empty
17061711
}
17071712
}
1708-
1709-
// Required to make auto trait impls render.
1710-
// See src/librustdoc/passes/collect_trait_impls.rs:collect_trait_impls
1711-
#[doc(hidden)]
1712-
impl<Ret, T> fn(T) -> Ret {}

0 commit comments

Comments
 (0)