]> git.lizzy.rs Git - rust.git/commitdiff
Change "us" to "is" in Layout::for_value comment
authorMatthew Kraai <kraai@ftbfs.org>
Fri, 6 Dec 2019 15:18:10 +0000 (07:18 -0800)
committerMatthew Kraai <kraai@ftbfs.org>
Fri, 6 Dec 2019 15:35:30 +0000 (07:35 -0800)
src/libcore/alloc.rs

index 4798769823f436b254a57b097ef0ea8a15199821..d260556a208037bba4c33f9d646f8dda4f2207ca 100644 (file)
@@ -137,7 +137,7 @@ pub fn new<T>() -> Self {
     #[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)