diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index a6c3e544e165..adf107dca223 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -748,8 +748,8 @@ pub unsafe fn write(dst: *mut T, src: T) { /// // Take a reference to a 32-bit integer which is not aligned. /// let unaligned = &mut x.unaligned as *mut u32; /// -/// // Dereferencing normally will emit an unaligned store instruction, -/// // causing undefined behavior. +/// // Dereferencing normally will emit an aligned store instruction, +/// // causing undefined behavior because the pointer is not aligned. /// // *unaligned = v; // ERROR /// /// // Instead, use `write_unaligned` to write improperly aligned values.