We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d83f49b + 5a700b2 commit 9ebb53eCopy full SHA for 9ebb53e
src/liballoc/arc.rs
@@ -446,7 +446,7 @@ impl<T> Weak<T> {
446
/// ```
447
pub fn upgrade(&self) -> Option<Arc<T>> {
448
// We use a CAS loop to increment the strong count instead of a
449
- // 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.
450
let inner = self.inner();
451
loop {
452
let n = inner.strong.load(SeqCst);
0 commit comments