We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Layout::padding_needed_for
1 parent a3c8577 commit 292b998Copy full SHA for 292b998
src/libcore/alloc.rs
@@ -196,7 +196,7 @@ impl Layout {
196
// valid.
197
//
198
// 2. `len + align - 1` can overflow by at most `align - 1`,
199
- // so the &-mask wth `!(align - 1)` will ensure that in the
+ // so the &-mask with `!(align - 1)` will ensure that in the
200
// case of overflow, `len_rounded_up` will itself be 0.
201
// Thus the returned padding, when added to `len`, yields 0,
202
// which trivially satisfies the alignment `align`.
0 commit comments