Clarify the language around RefCell::swap

This commit is contained in:
Michael Howell 2017-08-08 09:53:51 -07:00 committed by GitHub
parent dc76247a0a
commit 846d373ddf

View file

@ -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")]