RC module documentation concerning immutability is misleading #44105
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
RC module documentation should clarify mutable references can be obtained, under certain conditions.
Rc module documentation sates:
"Shared references in Rust disallow mutation by default, and Rc is no exception: you cannot obtain a mutable reference to something inside an Rc."
https://doc.rust-lang.org/std/rc/
Rc's get_mut method states:
"Returns a mutable reference to the inner value, if there are no other Rc or Weak pointers to the same value.".
https://doc.rust-lang.org/std/rc/struct.Rc.html#method.get_mut
The text was updated successfully, but these errors were encountered: