Skip to content

Commit

Permalink
Update rc.rs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
frankmcsherry committed Jun 5, 2016
1 parent 8cbffc5 commit 094f1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/rc.rs
Expand Up @@ -271,7 +271,7 @@ impl<T> Rc<T> {
}

impl<T: ?Sized> Rc<T> {
/// Downgrades the `Rc<T>` to a `Weak<T>` reference.
/// Creates a new `Weak<T>` reference from this value.
///
/// # Examples
///
Expand Down

0 comments on commit 094f1c4

Please sign in to comment.