mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Auto merge of #30285 - glglwty:patch-1, r=alexcrichton
srong -> strong in liballoc/arc.rs
This commit is contained in:
commit
9267a3a222
@ -428,7 +428,7 @@ impl<T: Clone> Arc<T> {
|
||||
// weak count, there's no chance the ArcInner itself could be
|
||||
// deallocated.
|
||||
if this.inner().strong.compare_and_swap(1, 0, Acquire) != 1 {
|
||||
// Another srong pointer exists; clone
|
||||
// Another strong pointer exists; clone
|
||||
*this = Arc::new((**this).clone());
|
||||
} else if this.inner().weak.load(Relaxed) != 1 {
|
||||
// Relaxed suffices in the above because this is fundamentally an
|
||||
|
Loading…
Reference in New Issue
Block a user