Skip to content

Commit 4c48923

Browse files
committed
change doc phrasing
1 parent b97039e commit 4c48923

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library/core/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ impl<Ret, T> fn(T) -> Ret {}
15771577
#[cfg(doc)]
15781578
#[stable(feature = "rust1", since = "1.0.0")]
15791579
#[doc(fake_variadic)]
1580-
/// This trait is implemented on function pointers with any number of arguments.
1580+
/// This trait is implemented on all function pointers.
15811581
impl<Ret, T> Clone for fn(T) -> Ret {
15821582
fn clone(&self) -> Self {
15831583
loop {}
@@ -1588,7 +1588,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
15881588
#[cfg(doc)]
15891589
#[stable(feature = "rust1", since = "1.0.0")]
15901590
#[doc(fake_variadic)]
1591-
/// This trait is implemented on function pointers with any number of arguments.
1591+
/// This trait is implemented on all function pointers.
15921592
impl<Ret, T> Copy for fn(T) -> Ret {
15931593
// empty
15941594
}
@@ -1601,7 +1601,7 @@ impl<Ret, T> Copy for fn(T) -> Ret {
16011601
reason = "internal trait for implementing various traits for all function pointers"
16021602
)]
16031603
#[doc(fake_variadic)]
1604-
/// This trait is implemented on function pointers with any number of arguments.
1604+
/// This trait is implemented on all function pointers.
16051605
impl<Ret, T> FnPtr for fn(T) -> Ret {
16061606
fn addr(self) -> *const () {
16071607
// empty

library/std/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ impl<Ret, T> fn(T) -> Ret {}
15771577
#[cfg(doc)]
15781578
#[stable(feature = "rust1", since = "1.0.0")]
15791579
#[doc(fake_variadic)]
1580-
/// This trait is implemented on function pointers with any number of arguments.
1580+
/// This trait is implemented on all function pointers.
15811581
impl<Ret, T> Clone for fn(T) -> Ret {
15821582
fn clone(&self) -> Self {
15831583
loop {}
@@ -1588,7 +1588,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
15881588
#[cfg(doc)]
15891589
#[stable(feature = "rust1", since = "1.0.0")]
15901590
#[doc(fake_variadic)]
1591-
/// This trait is implemented on function pointers with any number of arguments.
1591+
/// This trait is implemented on all function pointers.
15921592
impl<Ret, T> Copy for fn(T) -> Ret {
15931593
// empty
15941594
}
@@ -1601,7 +1601,7 @@ impl<Ret, T> Copy for fn(T) -> Ret {
16011601
reason = "internal trait for implementing various traits for all function pointers"
16021602
)]
16031603
#[doc(fake_variadic)]
1604-
/// This trait is implemented on function pointers with any number of arguments.
1604+
/// This trait is implemented on all function pointers.
16051605
impl<Ret, T> FnPtr for fn(T) -> Ret {
16061606
fn addr(self) -> *const () {
16071607
// empty

0 commit comments

Comments
 (0)