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:
commit
9ebb53ea5f
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ impl<T> Weak<T> {
|
||||||
/// ```
|
/// ```
|
||||||
pub fn upgrade(&self) -> Option<Arc<T>> {
|
pub fn upgrade(&self) -> Option<Arc<T>> {
|
||||||
// We use a CAS loop to increment the strong count instead of a
|
// 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();
|
let inner = self.inner();
|
||||||
loop {
|
loop {
|
||||||
let n = inner.strong.load(SeqCst);
|
let n = inner.strong.load(SeqCst);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue