about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-15 04:21:37 +0000
committerbors <bors@rust-lang.org>2024-01-15 04:21:37 +0000
commit37b8ae7f17811a7068236a25a0b053a477079bd7 (patch)
tree28314f913e77418aa4801f3883d0a46090629584
parenta9fa2f5ed1a80c692de249d1a86279dd2f832a30 (diff)
parentc2d071c11c008b08d841d30bae40f8acfdac0c6e (diff)
downloadrust-37b8ae7f17811a7068236a25a0b053a477079bd7.tar.gz
rust-37b8ae7f17811a7068236a25a0b053a477079bd7.zip
Auto merge of #12114 - talagrand:patch-1, r=Jarcho
['arc_with_non_send_sync`] documentation edits

Arc's documentation uses the term "thread"; aligning to that terminology. Fix casing of "Rc".

changelog: None
-rw-r--r--clippy_lints/src/arc_with_non_send_sync.rs4
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`
     ///