File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
49
49
///
50
50
/// The type `Arc<T>` provides shared ownership of a value of type `T`,
51
51
/// allocated in the heap. Invoking [`clone`][clone] on `Arc` produces
52
- /// a new pointer to the same `Arc` reference value in the heap. When the last
53
- /// `Arc` pointer to a given value is destroyed, the pointed-to value is also
52
+ /// a new `Arc` instance, which points to the same value on the heap as the
53
+ /// source `Arc`, while increasing a reference count. When the last `Arc`
54
+ /// pointer to a given value is destroyed, the pointed-to value is also
54
55
/// destroyed.
55
56
///
56
57
/// Shared references in Rust disallow mutation by default, and `Arc` is no
@@ -107,8 +108,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
107
108
/// // The two syntaxes below are equivalent.
108
109
/// let a = foo.clone();
109
110
/// let b = Arc::clone(&foo);
110
- /// // a and b both point to the same memory location where foo resides
111
- /// // (not where the value wrapped by foo resides).
111
+ /// // a and b both point to the same memory location as foo
112
112
/// ```
113
113
///
114
114
/// The [`Arc::clone(&from)`] syntax is the most idiomatic because it conveys more explicitly
You can’t perform that action at this time.
0 commit comments