Skip to content

Commit

Permalink
change doc phrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
mj10021 committed Sep 7, 2023
1 parent b97039e commit 4c48923
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ impl<Ret, T> fn(T) -> Ret {}
#[cfg(doc)]
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> Clone for fn(T) -> Ret {
fn clone(&self) -> Self {
loop {}
Expand All @@ -1588,7 +1588,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
#[cfg(doc)]
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> Copy for fn(T) -> Ret {
// empty
}
Expand All @@ -1601,7 +1601,7 @@ impl<Ret, T> Copy for fn(T) -> Ret {
reason = "internal trait for implementing various traits for all function pointers"
)]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> FnPtr for fn(T) -> Ret {
fn addr(self) -> *const () {
// empty
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ impl<Ret, T> fn(T) -> Ret {}
#[cfg(doc)]
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> Clone for fn(T) -> Ret {
fn clone(&self) -> Self {
loop {}
Expand All @@ -1588,7 +1588,7 @@ impl<Ret, T> Clone for fn(T) -> Ret {
#[cfg(doc)]
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> Copy for fn(T) -> Ret {
// empty
}
Expand All @@ -1601,7 +1601,7 @@ impl<Ret, T> Copy for fn(T) -> Ret {
reason = "internal trait for implementing various traits for all function pointers"
)]
#[doc(fake_variadic)]
/// This trait is implemented on function pointers with any number of arguments.
/// This trait is implemented on all function pointers.
impl<Ret, T> FnPtr for fn(T) -> Ret {
fn addr(self) -> *const () {
// empty
Expand Down

0 comments on commit 4c48923

Please sign in to comment.