Skip to content

Commit fc58145

Browse files
authored
Fix ref as mutable ref in std::rc::Rc doc
1 parent 6f01c84 commit fc58145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/rc.rs

+1-1
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)