1
Fork 0

liballoc: fix typo

This commit is contained in:
Richo Healey 2015-04-02 15:08:10 -07:00
parent 2e3b0c051d
commit 5a700b26e8

View file

@ -446,7 +446,7 @@ impl<T> Weak<T> {
/// ```
pub fn upgrade(&self) -> Option<Arc<T>> {
// We use a CAS loop to increment the strong count instead of a
// fetch_add because once the count hits 0 is must never be above 0.
// fetch_add because once the count hits 0 it must never be above 0.
let inner = self.inner();
loop {
let n = inner.strong.load(SeqCst);