Skip to content

Commit

Permalink
Rollup merge of rust-lang#34098 - frankmcsherry:patch-1, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
steveklabnik committed Jun 7, 2016
2 parents 31ddf96 + 094f1c4 commit 05efef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/rc.rs
Original file line number Diff line number Diff line change
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 05efef7

Please sign in to comment.