Skip to content

Commit

Permalink
Fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Aug 17, 2020
1 parent c619b36 commit c48f784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/alloc.rs
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/alloc.rs
Expand Up @@ -185,7 +185,7 @@ unsafe impl AllocRef for System {
);

// 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() {
Expand Down Expand Up @@ -214,7 +214,7 @@ unsafe impl AllocRef for System {
);

// 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() {
Expand Down

0 comments on commit c48f784

Please sign in to comment.