We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6773064 commit d1e53daCopy full SHA for d1e53da
src/libcore/alloc.rs
@@ -219,7 +219,7 @@ impl Layout {
219
#[inline]
220
pub fn pad_to_align(&self) -> Layout {
221
let pad = self.padding_needed_for(self.align());
222
- // This cannot overflow: it is an invariant of Layout that
+ // This cannot overflow. Quoting from the invariant of Layout:
223
// > `size`, when rounded up to the nearest multiple of `align`,
224
// > must not overflow (i.e., the rounded value must be less than
225
// > `usize::MAX`)
0 commit comments