about summary refs log tree commit diff
path: root/library/std/src/alloc.rs
diff options
context:
space:
mode:
authorTim Diekmann <tim.diekmann@3dvision.de>2020-08-17 15:05:19 +0200
committerTim Diekmann <tim.diekmann@3dvision.de>2020-08-17 15:05:19 +0200
commitc48f7844185cadc51af6ac5fd4db48324fd02882 (patch)
tree9d2bc32039a65be8ae19186a183beafe444063d0 /library/std/src/alloc.rs
parentc619b36975c399880eb87edb9a62d93c1732b2af (diff)
downloadrust-c48f7844185cadc51af6ac5fd4db48324fd02882.tar.gz
rust-c48f7844185cadc51af6ac5fd4db48324fd02882.zip
Fix typo in comment
Diffstat (limited to 'library/std/src/alloc.rs')
-rw-r--r--library/std/src/alloc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs
index 63473cebee8..54272165fb1 100644
--- a/library/std/src/alloc.rs
+++ b/library/std/src/alloc.rs
@@ -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() {
@@ -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() {