File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,7 @@ extern "rust-intrinsic" {
1369
1369
/// let offset = align_offset(ptr as *const (), align_of::<u16>());
1370
1370
/// if offset < x.len() - n - 1 {
1371
1371
/// let u16_ptr = ptr.offset(offset as isize) as *const u16;
1372
- /// *u16_ptr = 500;
1372
+ /// assert_ne!( *u16_ptr, 500) ;
1373
1373
/// } else {
1374
1374
/// // while the pointer can be aligned via `offset`, it would point
1375
1375
/// // outside the allocation
@@ -1406,7 +1406,7 @@ extern "rust-intrinsic" {
1406
1406
/// let offset = align_offset(ptr as *const (), align_of::<u16>());
1407
1407
/// if offset < x.len() - n - 1 {
1408
1408
/// let u16_ptr = ptr.offset(offset as isize) as *const u16;
1409
- /// *u16_ptr = 500;
1409
+ /// assert_ne!( *u16_ptr, 500) ;
1410
1410
/// } else {
1411
1411
/// // while the pointer can be aligned via `offset`, it would point
1412
1412
/// // outside the allocation
You can’t perform that action at this time.
0 commit comments