about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Reichold <adam.reichold@t-online.de>2023-12-10 07:34:48 +0100
committerAdam Reichold <adam.reichold@t-online.de>2024-01-15 09:07:48 +0100
commit33d8e47e98bf45fdc105d1fadb37dd03789ba1b3 (patch)
tree094bd90325b004a81f2d61dccd553aad9c7efbed
parent692f53fe8fb5ea7980fb83825b12d2a5d3e60b0f (diff)
downloadrust-33d8e47e98bf45fdc105d1fadb37dd03789ba1b3.tar.gz
rust-33d8e47e98bf45fdc105d1fadb37dd03789ba1b3.zip
Try to improve wording and fix dead link in description of arc_with_non_send_sync lint.
-rw-r--r--clippy_lints/src/arc_with_non_send_sync.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/arc_with_non_send_sync.rs b/clippy_lints/src/arc_with_non_send_sync.rs
index 58738d52878..1102c7fb236 100644
--- a/clippy_lints/src/arc_with_non_send_sync.rs
+++ b/clippy_lints/src/arc_with_non_send_sync.rs
@@ -14,10 +14,10 @@ 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 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`
+    /// `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`
     ///
     /// ### Example
     /// ```no_run