diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index aec60bc18f99..82e1c92359cc 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -1362,7 +1362,7 @@ trait RcBoxPtr { // 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 { // 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(); } }