1
Fork 0

Rollup merge of #23997 - richo:typos, r=huonw

Kinda hoped I'd spot something else for this PR, but then didn't.
This commit is contained in:
Manish Goregaokar 2015-04-04 10:55:44 +05:30
commit 9ebb53ea5f

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);