From 0b54b91496f3812de5fa21a09c8d8db3fc96108a Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Wed, 1 Jun 2022 00:23:23 +0200 Subject: [PATCH 1/3] Spelling correction. --- library/alloc/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index d5ed3fd18c3b8..4a965cb12db48 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1397,7 +1397,7 @@ impl Arc { /// be cloned. /// /// See also [`get_mut`], which will fail rather than cloning the inner value - /// or diassociating [`Weak`] pointers. + /// or disassociating [`Weak`] pointers. /// /// [`clone`]: Clone::clone /// [`get_mut`]: Arc::get_mut From 31ece0c850ca3642efa13fcd3dfb0ce007c2e0cc Mon Sep 17 00:00:00 2001 From: Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> Date: Wed, 1 Jun 2022 13:47:39 +0200 Subject: [PATCH 2/3] Update sync.rs --- library/alloc/src/sync.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 4a965cb12db48..1fb036743bff8 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1393,11 +1393,11 @@ impl Arc { /// referred to as clone-on-write. /// /// However, if there are no other `Arc` pointers to this allocation, but some [`Weak`] - /// pointers, then the [`Weak`] pointers will be disassociated and the inner value will not + /// pointers, then the [`Weak`] pointers will be disociated and the inner value will not /// be cloned. /// /// See also [`get_mut`], which will fail rather than cloning the inner value - /// or disassociating [`Weak`] pointers. + /// or dissociating [`Weak`] pointers. /// /// [`clone`]: Clone::clone /// [`get_mut`]: Arc::get_mut @@ -1420,7 +1420,7 @@ impl Arc { /// assert_eq!(*other_data, 12); /// ``` /// - /// [`Weak`] pointers will be disassociated: + /// [`Weak`] pointers will be dissociated: /// /// ``` /// use std::sync::Arc; From f81269f508f41ccc8d4398cb36a218b19cbd2901 Mon Sep 17 00:00:00 2001 From: Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> Date: Wed, 1 Jun 2022 14:12:36 +0200 Subject: [PATCH 3/3] Update sync.rs --- library/alloc/src/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 1fb036743bff8..55d51e0a3c4cf 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1393,7 +1393,7 @@ impl Arc { /// referred to as clone-on-write. /// /// However, if there are no other `Arc` pointers to this allocation, but some [`Weak`] - /// pointers, then the [`Weak`] pointers will be disociated and the inner value will not + /// pointers, then the [`Weak`] pointers will be dissociated and the inner value will not /// be cloned. /// /// See also [`get_mut`], which will fail rather than cloning the inner value