[ arc_with_non_send_sync ]: fix doc nits
This commit is contained in:
parent
4f3180adac
commit
5e60afb6cc
@ -17,7 +17,7 @@
|
||||
/// `Arc<T>` is a thread-safe `Rc<T>` and guarantees that updates to the reference counter
|
||||
/// use atomic operations. To send an `Arc<T>` across thread boundaries and
|
||||
/// share ownership between multiple threads, `T` must be [both `Send` and `Sync`](https://doc.rust-lang.org/std/sync/struct.Arc.html#thread-safety),
|
||||
/// so either `T` should be made `Send + Sync` or an `Rc` should be used instead of an `Arc`
|
||||
/// so either `T` should be made `Send + Sync` or an `Rc` should be used instead of an `Arc`.
|
||||
///
|
||||
/// ### Example
|
||||
/// ```no_run
|
||||
|
Loading…
Reference in New Issue
Block a user