From 846d373ddf31aeb76dabedb81a4ae9200d9da1cd Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 8 Aug 2017 09:53:51 -0700 Subject: [PATCH] Clarify the language around `RefCell::swap` --- src/libcore/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 675fcef5e5ab..f0a94a634f5c 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -589,7 +589,7 @@ impl RefCell { /// /// # 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")]