Skip to content

Commit

Permalink
Update intrinsics.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored Aug 22, 2017
1 parent 1dc3a2b commit be96ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ extern "rust-intrinsic" {
/// let offset = align_offset(ptr as *const (), align_of::<u16>());
/// if offset < x.len() - n - 1 {
/// let u16_ptr = ptr.offset(offset as isize) as *const u16;
/// *u16_ptr = 500;
/// assert_ne!(*u16_ptr, 500);
/// } else {
/// // while the pointer can be aligned via `offset`, it would point
/// // outside the allocation
Expand Down Expand Up @@ -1406,7 +1406,7 @@ extern "rust-intrinsic" {
/// let offset = align_offset(ptr as *const (), align_of::<u16>());
/// if offset < x.len() - n - 1 {
/// let u16_ptr = ptr.offset(offset as isize) as *const u16;
/// *u16_ptr = 500;
/// assert_ne!(*u16_ptr, 500);
/// } else {
/// // while the pointer can be aligned via `offset`, it would point
/// // outside the allocation
Expand Down

0 comments on commit be96ad2

Please sign in to comment.