Skip to content

Commit

Permalink
Fix intrinsic size_of stable link
Browse files Browse the repository at this point in the history
I noticed that it is pointing to the same link when I was reading
rust-lang/rust-clippy#2997
  • Loading branch information
pickfire authored Nov 2, 2020
1 parent 3e93027 commit c83c635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ extern "rust-intrinsic" {
/// More specifically, this is the offset in bytes between successive
/// items of the same type, including alignment padding.
///
/// The stabilized version of this intrinsic is [`size_of`].
/// The stabilized version of this intrinsic is [`crate::mem::size_of`].
#[rustc_const_stable(feature = "const_size_of", since = "1.40.0")]
pub fn size_of<T>() -> usize;

Expand Down

0 comments on commit c83c635

Please sign in to comment.