about summary refs log tree commit diff
path: root/library/alloc/src/sync.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-01 13:47:39 +0200
committerGitHub <noreply@github.com>2022-06-01 13:47:39 +0200
commit31ece0c850ca3642efa13fcd3dfb0ce007c2e0cc (patch)
treee419a2f1e45e4d9e8bf9f8042f21d4d47f6c3790 /library/alloc/src/sync.rs
parent0b54b91496f3812de5fa21a09c8d8db3fc96108a (diff)
downloadrust-31ece0c850ca3642efa13fcd3dfb0ce007c2e0cc.tar.gz
rust-31ece0c850ca3642efa13fcd3dfb0ce007c2e0cc.zip
Update sync.rs
Diffstat (limited to 'library/alloc/src/sync.rs')
-rw-r--r--library/alloc/src/sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index 4a965cb12db..1fb036743bf 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -1393,11 +1393,11 @@ impl<T: Clone> Arc<T> {
     /// 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<T: Clone> Arc<T> {
     /// assert_eq!(*other_data, 12);
     /// ```
     ///
-    /// [`Weak`] pointers will be disassociated:
+    /// [`Weak`] pointers will be dissociated:
     ///
     /// ```
     /// use std::sync::Arc;