Skip to content

Commit 4cf15ea

Browse files
committed
Point out that std's SyncUnsafeCell is more complete
1 parent 0dff3a6 commit 4cf15ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2024/static-mut-references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ fn set_value(value: i32) {
330330
}
331331
```
332332

333-
The standard library has a nightly-only (unstable) variant of [`UnsafeCell`] called [`SyncUnsafeCell`]. This example above shows a very simplified version of the standard library type, but would be used roughly the same way.
333+
The standard library has a nightly-only (unstable) variant of [`UnsafeCell`] called [`SyncUnsafeCell`]. This example above shows a very simplified version of the standard library type, but would be used roughly the same way. It can provide even better isolation, so do check out its implementation for more details.
334334

335335
[`UnsafeCell`]: ../../std/cell/struct.UnsafeCell.html
336336
[`SyncUnsafeCell`]: ../../std/cell/struct.SyncUnsafeCell.html

0 commit comments

Comments
 (0)