Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf authored Nov 2, 2023
1 parent ec7996d commit 9cf1a48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,6 @@ impl<T> SizedTypeProperties for T {}
/// ```
/// #![feature(offset_of)]
///
/// use std::mem;
/// struct Wrapper<T, U>(T, U);
///
/// type A = Wrapper<u8, u8>;
Expand All @@ -1345,7 +1344,7 @@ impl<T> SizedTypeProperties for T {}
/// // Not necessarily identical even though `u8` and `U8` have the same layout!
/// // assert!(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
///
/// struct Empty<T>(PhantomData<T>);
/// struct Empty<T>(core::marker::PhantomData<T>);
///
/// // Not necessarily identical even though `PhantomData` always has the same layout!
/// // assert!(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0));
Expand Down

0 comments on commit 9cf1a48

Please sign in to comment.