Skip to content

Commit

Permalink
Change "wth" to "with" in Layout::padding_needed_for comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kraai committed Dec 6, 2019
1 parent a3c8577 commit 292b998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 292b998

Please sign in to comment.