Fix typo
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
b688d480a6
commit
b9da350b09
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ impl Layout {
|
|||
// > `usize::MAX`)
|
||||
let new_size = self.size() + pad;
|
||||
|
||||
// SAFETY: This necessarily respectes the from_size_align
|
||||
// SAFETY: This necessarily respects the from_size_align
|
||||
// prerequisites per the above.
|
||||
unsafe { Layout::from_size_align_unchecked(new_size, self.align()) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue