Fix typo in comment

This commit is contained in:
Tim Diekmann 2020-08-17 15:05:19 +02:00
parent c619b36975
commit c48f784418
2 changed files with 4 additions and 4 deletions

View file

@ -209,7 +209,7 @@ unsafe impl AllocRef for Global {
);
// SAFETY: `new_size` must be non-zero, which is checked in the match expression.
// If `new_size` is zero, than `old_size` has to be zero as well.
// If `new_size` is zero, then `old_size` has to be zero as well.
// Other conditions must be upheld by the caller
unsafe {
match layout.size() {
@ -238,7 +238,7 @@ unsafe impl AllocRef for Global {
);
// SAFETY: `new_size` must be non-zero, which is checked in the match expression.
// If `new_size` is zero, than `old_size` has to be zero as well.
// If `new_size` is zero, then `old_size` has to be zero as well.
// Other conditions must be upheld by the caller
unsafe {
match layout.size() {