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 19, 2023
1 parent 266ed66 commit 5220231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1,612 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 @@ -1574,7 +1574,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 @@ -1585,7 +1585,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 @@ -1598,7 +1598,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
Loading

0 comments on commit 5220231

Please sign in to comment.