Mention Arc::make_mut and Rc::make_mut in the documentation of Cow

This commit is contained in:
Frank Steffahn 2020-12-28 16:59:36 +01:00
parent aef92d44e4
commit 303203f992

View File

@ -103,6 +103,11 @@ where
/// is desired, `to_mut` will obtain a mutable reference to an owned
/// value, cloning if necessary.
///
/// If you need reference-counting pointers, note that
/// [`Rc::make_mut`][crate::rc::Rc::make_mut] and
/// [`Arc::make_mut`][crate::sync::Arc::make_mut] can provide clone-on-write
/// functionality as well.
///
/// # Examples
///
/// ```