File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl Layout {
137
137
#[ inline]
138
138
pub fn for_value < T : ?Sized > ( t : & T ) -> Self {
139
139
let ( size, align) = ( mem:: size_of_val ( t) , mem:: align_of_val ( t) ) ;
140
- // See rationale in `new` for why this us using an unsafe variant below
140
+ // See rationale in `new` for why this is using an unsafe variant below
141
141
debug_assert ! ( Layout :: from_size_align( size, align) . is_ok( ) ) ;
142
142
unsafe {
143
143
Layout :: from_size_align_unchecked ( size, align)
@@ -196,7 +196,7 @@ impl Layout {
196
196
// valid.
197
197
//
198
198
// 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
200
200
// case of overflow, `len_rounded_up` will itself be 0.
201
201
// Thus the returned padding, when added to `len`, yields 0,
202
202
// which trivially satisfies the alignment `align`.
You can’t perform that action at this time.
0 commit comments