Skip to content

Commit 094f1c4

Browse files
committed
Update rc.rs
The original description suggests that the original `Rc<T>` itself is downgraded, which doesn't seem to be what the code does. At the same time, `Rc` is one of those types that can do weird things with only a shared reference, so I thought it would be good to be clear.
1 parent 8cbffc5 commit 094f1c4

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
@@ -271,7 +271,7 @@ impl<T> Rc<T> {
271271
}
272272

273273
impl<T: ?Sized> Rc<T> {
274-
/// Downgrades the `Rc<T>` to a `Weak<T>` reference.
274+
/// Creates a new `Weak<T>` reference from this value.
275275
///
276276
/// # Examples
277277
///

0 commit comments

Comments
 (0)