Clarify the language around RefCell::swap
This commit is contained in:
parent
dc76247a0a
commit
846d373ddf
1 changed files with 1 additions and 1 deletions
|
|
@ -589,7 +589,7 @@ impl<T> RefCell<T> {
|
|||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// This function will panic if the `RefCell` has any outstanding borrows,
|
||||
/// This function will panic if either `RefCell` has any outstanding borrows,
|
||||
/// whether or not they are full mutable borrows.
|
||||
#[inline]
|
||||
#[unstable(feature = "refcell_replace_swap", issue="43570")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue