Skip to content

Commit 159dba8

Browse files
author
Lukas Markeffsky
committed
fix PointerLike docs
1 parent 971a4f2 commit 159dba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/marker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -982,8 +982,8 @@ pub trait Tuple {}
982982

983983
/// A marker for pointer-like types.
984984
///
985-
/// All types that have the same size and alignment as a `usize` or
986-
/// `*const ()` automatically implement this trait.
985+
/// This trait can only be implemented for types that have the same size and alignment
986+
/// as a `usize` or `*const ()`.
987987
#[unstable(feature = "pointer_like_trait", issue = "none")]
988988
#[lang = "pointer_like"]
989989
#[diagnostic::on_unimplemented(

0 commit comments

Comments
 (0)