Skip to content

Commit 292b998

Browse files
committed
Change "wth" to "with" in Layout::padding_needed_for comment
1 parent a3c8577 commit 292b998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/alloc.rs

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

0 commit comments

Comments
 (0)