about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorDmytro Shynkevych <dm.shynk@gmail.com>2018-08-05 02:41:14 -0400
committerDmytro Shynkevych <dm.shynk@gmail.com>2018-08-05 02:41:14 -0400
commit4e17fbde0b02b0b818b9a6c6fcf2d18eb02622d8 (patch)
tree0776131c985c2658789e143b5b2e7daf059688a0 /src/liballoc
parent1553ea23165fc795b8c7e8188d2782c39c94b922 (diff)
downloadrust-4e17fbde0b02b0b818b9a6c6fcf2d18eb02622d8.tar.gz
rust-4e17fbde0b02b0b818b9a6c6fcf2d18eb02622d8.zip
Fixed typo
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index aec60bc18f9..82e1c92359c 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -1362,7 +1362,7 @@ trait RcBoxPtr<T: ?Sized> {
         // We want to abort on overflow instead of dropping the value.
         // The reference count will never be zero when this is called;
         // nevertheless, we insert an abort here to hint LLVM at
-        // an otherwise missied optimization.
+        // an otherwise missed optimization.
         if self.strong() == 0 || self.strong() == usize::max_value() {
             unsafe { abort(); }
         }
@@ -1384,7 +1384,7 @@ trait RcBoxPtr<T: ?Sized> {
         // We want to abort on overflow instead of dropping the value.
         // The reference count will never be zero when this is called;
         // nevertheless, we insert an abort here to hint LLVM at
-        // an otherwise missied optimization.
+        // an otherwise missed optimization.
         if self.weak() == 0 || self.weak() == usize::max_value() {
             unsafe { abort(); }
         }