Skip to content

Commit f192719

Browse files
Minor grammar change in src/std/rc.md paragraph 2 (#1586)
Co-authored-by: David Niedzielski <david.niedzielski@tomtom.com>
1 parent d950242 commit f192719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/rc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
When multiple ownership is needed, `Rc`(Reference Counting) can be used. `Rc` keeps track of the number of the references which means the number of owners of the value wrapped inside an `Rc`.
44

5-
Reference count of an `Rc` increases by 1 whenever an `Rc` is cloned, and decreases by 1 whenever one cloned `Rc` is dropped out of the scope. When an `Rc`'s reference count becomes zero, which means there are no owners remained, both the `Rc` and the value are all dropped.
5+
Reference count of an `Rc` increases by 1 whenever an `Rc` is cloned, and decreases by 1 whenever one cloned `Rc` is dropped out of the scope. When an `Rc`'s reference count becomes zero (which means there are no remaining owners), both the `Rc` and the value are all dropped.
66

77
Cloning an `Rc` never performs a deep copy. Cloning creates just another pointer to the wrapped value, and increments the count.
88

0 commit comments

Comments
 (0)