Skip to content

Commit

Permalink
Update rc decrement snipped (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
kendru authored Oct 6, 2021
1 parent 191c06c commit e0aa678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arc-mutex/arc-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ the last reference to the data).

<!-- ignore: simplified code -->
```rust,ignore
if inner.rc.fetch_sub(1, Ordering::Relaxed) != 1 {
if inner.rc.fetch_sub(1, Ordering::Release) != 1 {
return;
}
```
Expand Down

0 comments on commit e0aa678

Please sign in to comment.