1
Fork 0

fixed a typo in comments

srong -> strong in liballoc/arc.rs
This commit is contained in:
Tianyi Wang 2015-12-09 23:18:24 +08:00
parent 2e48b593ca
commit f13f488eb6

View file

@ -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