diff options
| author | Matthew Kraai <kraai@ftbfs.org> | 2019-12-06 07:18:10 -0800 |
|---|---|---|
| committer | Matthew Kraai <kraai@ftbfs.org> | 2019-12-06 07:35:30 -0800 |
| commit | a3c85770fbf3ebe405dbc38c26483628146de240 (patch) | |
| tree | d6cddddfe39a8ea1c7730f87757488fda58b2936 | |
| parent | d0126e8ed3cc0d6fcb9dd44c36a46f9ce65010a0 (diff) | |
| download | rust-a3c85770fbf3ebe405dbc38c26483628146de240.tar.gz rust-a3c85770fbf3ebe405dbc38c26483628146de240.zip | |
Change "us" to "is" in Layout::for_value comment
| -rw-r--r-- | src/libcore/alloc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index 4798769823f..d260556a208 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -137,7 +137,7 @@ impl Layout { #[inline] pub fn for_value<T: ?Sized>(t: &T) -> Self { let (size, align) = (mem::size_of_val(t), mem::align_of_val(t)); - // See rationale in `new` for why this us using an unsafe variant below + // See rationale in `new` for why this is using an unsafe variant below debug_assert!(Layout::from_size_align(size, align).is_ok()); unsafe { Layout::from_size_align_unchecked(size, align) |
