Skip to content

Commit

Permalink
Change "us" to "is" in Layout::for_value comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kraai committed Dec 6, 2019
1 parent d0126e8 commit a3c8577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3c8577

Please sign in to comment.