We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81ae8be + f13f488 commit 9267a3aCopy full SHA for 9267a3a
src/liballoc/arc.rs
@@ -428,7 +428,7 @@ impl<T: Clone> Arc<T> {
428
// weak count, there's no chance the ArcInner itself could be
429
// deallocated.
430
if this.inner().strong.compare_and_swap(1, 0, Acquire) != 1 {
431
- // Another srong pointer exists; clone
+ // Another strong pointer exists; clone
432
*this = Arc::new((**this).clone());
433
} else if this.inner().weak.load(Relaxed) != 1 {
434
// Relaxed suffices in the above because this is fundamentally an
0 commit comments