rollup merge of #23743: Adenilson/addInfoArcClone01
Adding more information about the behavior of Arc/Rc when you perform a clone() call.
This commit is contained in:
commit
df49ea6a83
2 changed files with 5 additions and 1 deletions
|
@ -94,6 +94,9 @@ use heap::deallocate;
|
|||
/// With simple pipes, without `Arc`, a copy would have to be made for each
|
||||
/// task.
|
||||
///
|
||||
/// When you clone an `Arc<T>`, it will create another pointer to the data and
|
||||
/// increase the reference counter.
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(alloc, core)]
|
||||
/// use std::sync::Arc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue