Skip to content

Commit 97b7783

Browse files
Rollup merge of #42825 - letheed:patch-1, r=alexcrichton
Fix ref as mutable ref in std::rc::Rc doc
2 parents bb2db94 + fc58145 commit 97b7783

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
@@ -273,7 +273,7 @@ struct RcBox<T: ?Sized> {
273273
/// See the [module-level documentation](./index.html) for more details.
274274
///
275275
/// The inherent methods of `Rc` are all associated functions, which means
276-
/// that you have to call them as e.g. [`Rc::get_mut(&value)`][get_mut] instead of
276+
/// that you have to call them as e.g. [`Rc::get_mut(&mut value)`][get_mut] instead of
277277
/// `value.get_mut()`. This avoids conflicts with methods of the inner
278278
/// type `T`.
279279
///

0 commit comments

Comments
 (0)