Skip to content

Commit d175b3e

Browse files
gonzalobgnagisa
andauthored
Improve further by nagisa
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
1 parent bc88e9a commit d175b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
21662166
}
21672167
}
21682168

2169-
/// Overalign pointer `p`.
2169+
/// Calculate an offset to pointer `p` overaligned to alignment `a`.
21702170
///
21712171
/// Calculate offset (in terms of elements of `size_of::<T>()` stride) that has to be added
21722172
/// to pointer `p` so that pointer `p` would get overaligned to `a`.

0 commit comments

Comments
 (0)