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. // 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 // Other conditions must be upheld by the caller
unsafe { unsafe {
match layout.size() { 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. // 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 // Other conditions must be upheld by the caller
unsafe { unsafe {
match layout.size() { match layout.size() {

View File

@@ -185,7 +185,7 @@ unsafe impl AllocRef for System {
); );
// SAFETY: `new_size` must be non-zero, which is checked in the match expression. // 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 // Other conditions must be upheld by the caller
unsafe { unsafe {
match layout.size() { match layout.size() {
@@ -214,7 +214,7 @@ unsafe impl AllocRef for System {
); );
// SAFETY: `new_size` must be non-zero, which is checked in the match expression. // 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 // Other conditions must be upheld by the caller
unsafe { unsafe {
match layout.size() { match layout.size() {