Skip to content

Commit 9cf1a48

Browse files
authored
Update mod.rs
1 parent ec7996d commit 9cf1a48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/mem/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,6 @@ impl<T> SizedTypeProperties for T {}
13281328
/// ```
13291329
/// #![feature(offset_of)]
13301330
///
1331-
/// use std::mem;
13321331
/// struct Wrapper<T, U>(T, U);
13331332
///
13341333
/// type A = Wrapper<u8, u8>;
@@ -1345,7 +1344,7 @@ impl<T> SizedTypeProperties for T {}
13451344
/// // Not necessarily identical even though `u8` and `U8` have the same layout!
13461345
/// // assert!(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
13471346
///
1348-
/// struct Empty<T>(PhantomData<T>);
1347+
/// struct Empty<T>(core::marker::PhantomData<T>);
13491348
///
13501349
/// // Not necessarily identical even though `PhantomData` always has the same layout!
13511350
/// // assert!(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0));

0 commit comments

Comments
 (0)