File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1337,20 +1337,20 @@ impl<T> SizedTypeProperties for T {}
1337
1337
/// type B = Wrapper<u8, i8>;
1338
1338
///
1339
1339
/// // Not necessarily identical even though `u8` and `i8` have the same layout!
1340
- /// // assert !(mem::offset_of!(A, 1), mem::offset_of!(B, 1));
1340
+ /// // assert_eq !(mem::offset_of!(A, 1), mem::offset_of!(B, 1));
1341
1341
///
1342
1342
/// #[repr(transparent)]
1343
1343
/// struct U8(u8);
1344
1344
///
1345
1345
/// type C = Wrapper<u8, U8>;
1346
1346
///
1347
1347
/// // Not necessarily identical even though `u8` and `U8` have the same layout!
1348
- /// // assert !(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
1348
+ /// // assert_eq !(mem::offset_of!(A, 1), mem::offset_of!(C, 1));
1349
1349
///
1350
1350
/// struct Empty<T>(core::marker::PhantomData<T>);
1351
1351
///
1352
1352
/// // Not necessarily identical even though `PhantomData` always has the same layout!
1353
- /// // assert !(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0));
1353
+ /// // assert_eq !(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0));
1354
1354
/// ```
1355
1355
///
1356
1356
/// [explicit `repr` attribute]: https://doc.rust-lang.org/reference/type-layout.html#representations
You can’t perform that action at this time.
0 commit comments