Skip to content

Commit 343f955

Browse files
committed
change doc phrasing
1 parent 37e1298 commit 343f955

File tree

2 files changed

+3
-1612
lines changed

2 files changed

+3
-1612
lines changed

library/core/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ mod prim_fn {}
16751675
#[cfg(doc)]
16761676
#[stable(feature = "rust1", since = "1.0.0")]
16771677
#[doc(fake_variadic)]
1678-
/// This trait is implemented on function pointers with any number of arguments.
1678+
/// This trait is implemented on all function pointers.
16791679
impl<Ret, T> Clone for fn(T) -> Ret {
16801680
fn clone(&self) -> Self {
16811681
loop {}
@@ -1686,7 +1686,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
16861686
#[cfg(doc)]
16871687
#[stable(feature = "rust1", since = "1.0.0")]
16881688
#[doc(fake_variadic)]
1689-
/// This trait is implemented on function pointers with any number of arguments.
1689+
/// This trait is implemented on all function pointers.
16901690
impl<Ret, T> Copy for fn(T) -> Ret {
16911691
// empty
16921692
}
@@ -1699,7 +1699,7 @@ impl<Ret, T> Copy for fn(T) -> Ret {
16991699
reason = "internal trait for implementing various traits for all function pointers"
17001700
)]
17011701
#[doc(fake_variadic)]
1702-
/// This trait is implemented on function pointers with any number of arguments.
1702+
/// This trait is implemented on all function pointers.
17031703
impl<Ret, T> FnPtr for fn(T) -> Ret {
17041704
fn addr(self) -> *const () {
17051705
// empty

0 commit comments

Comments
 (0)