Skip to content

Commit 1713e9f

Browse files
ThePuzzlemakerGankra
authored andcommitted
Remove TODO
1 parent 6b6c0a6 commit 1713e9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/arc-drop.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ also return if the returned value from `fetch_sub` (the value of the reference
2222
count before decrementing it) is not equal to `1` (which happens when we are not
2323
the last reference to the data).
2424
```rust,ignore
25-
if inner.rc.fetch_sub(1, Ordering::???) != 1 {
25+
if inner.rc.fetch_sub(1, Ordering::Relaxed) != 1 {
2626
return;
2727
}
2828
```
2929

30-
TODO
3130
We then need to create an atomic fence to prevent reordering of the use of the
3231
data and deletion of the data. As described in [the standard library's
3332
implementation of `Arc`][3]:

0 commit comments

Comments
 (0)