Skip to content

Commit 42055e3

Browse files
committed
Rc itself isn't immutable.
An "immutable reference-counted pointer" is confusing, one might think that the `Rc` itself is immutable which isn't the case.
1 parent f9aeea7 commit 42055e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ struct RcBox<T> {
170170
weak: Cell<usize>
171171
}
172172

173-
/// An immutable reference-counted pointer type.
173+
/// A reference-counted pointer type over an immutable value.
174174
///
175175
/// See the [module level documentation](./index.html) for more details.
176176
#[unsafe_no_drop_flag]

0 commit comments

Comments
 (0)