Fixed typo
This commit is contained in:
parent
1553ea2316
commit
4e17fbde0b
1 changed files with 2 additions and 2 deletions
|
@ -1362,7 +1362,7 @@ trait RcBoxPtr<T: ?Sized> {
|
||||||
// We want to abort on overflow instead of dropping the value.
|
// We want to abort on overflow instead of dropping the value.
|
||||||
// The reference count will never be zero when this is called;
|
// The reference count will never be zero when this is called;
|
||||||
// nevertheless, we insert an abort here to hint LLVM at
|
// 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() {
|
if self.strong() == 0 || self.strong() == usize::max_value() {
|
||||||
unsafe { abort(); }
|
unsafe { abort(); }
|
||||||
}
|
}
|
||||||
|
@ -1384,7 +1384,7 @@ trait RcBoxPtr<T: ?Sized> {
|
||||||
// We want to abort on overflow instead of dropping the value.
|
// We want to abort on overflow instead of dropping the value.
|
||||||
// The reference count will never be zero when this is called;
|
// The reference count will never be zero when this is called;
|
||||||
// nevertheless, we insert an abort here to hint LLVM at
|
// 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() {
|
if self.weak() == 0 || self.weak() == usize::max_value() {
|
||||||
unsafe { abort(); }
|
unsafe { abort(); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue