Change "us" to "is" in Layout::for_value comment
This commit is contained in:
parent
d0126e8ed3
commit
a3c85770fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user