File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ use heap::deallocate;
94
94
/// With simple pipes, without `Arc`, a copy would have to be made for each
95
95
/// task.
96
96
///
97
+ /// When you clone an `Arc<T>`, it will create another pointer to the data and
98
+ /// increase the reference counter.
99
+ ///
97
100
/// ```
98
101
/// # #![feature(alloc, core)]
99
102
/// use std::sync::Arc;
Original file line number Diff line number Diff line change @@ -431,7 +431,8 @@ impl<T> Clone for Rc<T> {
431
431
432
432
/// Makes a clone of the `Rc<T>`.
433
433
///
434
- /// This increases the strong reference count.
434
+ /// When you clone an `Rc<T>`, it will create another pointer to the data and
435
+ /// increase the strong reference counter.
435
436
///
436
437
/// # Examples
437
438
///
You can’t perform that action at this time.
0 commit comments