We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d175b3e commit e8f7cc9Copy full SHA for e8f7cc9
library/core/src/ptr/mod.rs
@@ -2166,10 +2166,10 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
2166
}
2167
2168
2169
-/// Calculate an offset to pointer `p` overaligned to alignment `a`.
+/// Calculate an offset to pointer `p` that aligns it up to alignment `a`.
2170
///
2171
/// Calculate offset (in terms of elements of `size_of::<T>()` stride) that has to be added
2172
-/// to pointer `p` so that pointer `p` would get overaligned to `a`.
+/// to pointer `p` so that pointer `p` would get aligned up to `a`.
2173
2174
/// # Safety
2175
/// `a` must be a power of two.
0 commit comments