fixed a typo in comments
srong -> strong in liballoc/arc.rs
This commit is contained in:
parent
2e48b593ca
commit
f13f488eb6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue