about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Kraai <kraai@ftbfs.org>2019-12-06 07:59:13 -0800
committerMatthew Kraai <kraai@ftbfs.org>2019-12-06 07:59:13 -0800
commit292b998c64ed0459b875eac9f5dccb2786a9deca (patch)
tree870eca7f2378a79f198814780e0fcec3223b3f6a
parenta3c85770fbf3ebe405dbc38c26483628146de240 (diff)
Change "wth" to "with" in `Layout::padding_needed_for` comment
-rw-r--r--src/libcore/alloc.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ 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`.