Change "wth" to "with" in Layout::padding_needed_for comment

This commit is contained in:
Matthew Kraai 2019-12-06 07:59:13 -08:00
parent a3c85770fb
commit 292b998c64

View File

@ -196,7 +196,7 @@ impl Layout {
// valid.
//
// 2. `len + align - 1` can overflow by at most `align - 1`,
// so the &-mask wth `!(align - 1)` will ensure that in the
// so the &-mask with `!(align - 1)` will ensure that in the
// case of overflow, `len_rounded_up` will itself be 0.
// Thus the returned padding, when added to `len`, yields 0,
// which trivially satisfies the alignment `align`.