From 292b998c64ed0459b875eac9f5dccb2786a9deca Mon Sep 17 00:00:00 2001 From: Matthew Kraai Date: Fri, 6 Dec 2019 07:59:13 -0800 Subject: [PATCH] Change "wth" to "with" in `Layout::padding_needed_for` comment --- src/libcore/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index d260556a208..65ff5d10e2d 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -196,7 +196,7 @@ pub fn padding_needed_for(&self, align: usize) -> usize { // 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`. -- 2.44.0