Skip to content

Commit 846d373

Browse files
authored
Clarify the language around RefCell::swap
1 parent dc76247 commit 846d373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<T> RefCell<T> {
589589
///
590590
/// # Panics
591591
///
592-
/// This function will panic if the `RefCell` has any outstanding borrows,
592+
/// This function will panic if either `RefCell` has any outstanding borrows,
593593
/// whether or not they are full mutable borrows.
594594
#[inline]
595595
#[unstable(feature = "refcell_replace_swap", issue="43570")]

0 commit comments

Comments
 (0)