diff options
| author | Eugene <git@talagrand.org> | 2024-01-09 06:50:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 06:50:17 -0800 |
| commit | c2d071c11c008b08d841d30bae40f8acfdac0c6e (patch) | |
| tree | 7fca27f66ec900d0216e59b11edc4789c3ef1be7 | |
| parent | 3b8323d79024efb4ed4664faa4f29a1a7117177a (diff) | |
| download | rust-c2d071c11c008b08d841d30bae40f8acfdac0c6e.tar.gz rust-c2d071c11c008b08d841d30bae40f8acfdac0c6e.zip | |
Documentation edits for arc_with_non_send_sync
Arc's documentation uses the term "thread", aligning to that terminology. Fix typo in "Rc".
| -rw-r--r-- | clippy_lints/src/arc_with_non_send_sync.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/arc_with_non_send_sync.rs b/clippy_lints/src/arc_with_non_send_sync.rs index 657d52d0e9e..58738d52878 100644 --- a/clippy_lints/src/arc_with_non_send_sync.rs +++ b/clippy_lints/src/arc_with_non_send_sync.rs @@ -14,8 +14,8 @@ declare_clippy_lint! { /// This lint warns when you use `Arc` with a type that does not implement `Send` or `Sync`. /// /// ### Why is this bad? - /// `Arc<T>` is an Atomic `RC<T>` and guarantees that updates to the reference counter are - /// Atomic. This is useful in multiprocessing scenarios. To send an `Arc<T>` across processes + /// `Arc<T>` is an Atomic `Rc<T>` and guarantees that updates to the reference counter are + /// Atomic. This is useful in multithreading scenarios. To send an `Arc<T>` across threads /// and make use of the atomic ref counter, `T` must be [both `Send` and `Sync`](https://doc.rust-lang.org/std/sync/struct.Arc.html#impl-Send-for-Arc%3CT%3E), /// either `T` should be made `Send + Sync` or an `Rc` should be used instead of an `Arc` /// |
