Update rc decrement snipped (#316)

pull/317/head
Andrew Meredith 3 years ago committed by GitHub
parent 191c06c79c
commit e0aa678dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ the last reference to the data).
<!-- ignore: simplified code --> <!-- ignore: simplified code -->
```rust,ignore ```rust,ignore
if inner.rc.fetch_sub(1, Ordering::Relaxed) != 1 { if inner.rc.fetch_sub(1, Ordering::Release) != 1 {
return; return;
} }
``` ```

Loading…
Cancel
Save