Skip to content

Commit c48f784

Browse files
committed
Fix typo in comment
1 parent c619b36 commit c48f784

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/alloc/src/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ unsafe impl AllocRef for Global {
209209
);
210210

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

240240
// SAFETY: `new_size` must be non-zero, which is checked in the match expression.
241-
// If `new_size` is zero, than `old_size` has to be zero as well.
241+
// If `new_size` is zero, then `old_size` has to be zero as well.
242242
// Other conditions must be upheld by the caller
243243
unsafe {
244244
match layout.size() {

library/std/src/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ unsafe impl AllocRef for System {
185185
);
186186

187187
// SAFETY: `new_size` must be non-zero, which is checked in the match expression.
188-
// If `new_size` is zero, than `old_size` has to be zero as well.
188+
// If `new_size` is zero, then `old_size` has to be zero as well.
189189
// Other conditions must be upheld by the caller
190190
unsafe {
191191
match layout.size() {
@@ -214,7 +214,7 @@ unsafe impl AllocRef for System {
214214
);
215215

216216
// SAFETY: `new_size` must be non-zero, which is checked in the match expression.
217-
// If `new_size` is zero, than `old_size` has to be zero as well.
217+
// If `new_size` is zero, then `old_size` has to be zero as well.
218218
// Other conditions must be upheld by the caller
219219
unsafe {
220220
match layout.size() {

0 commit comments

Comments
 (0)