We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd064e0 commit 28a19bfCopy full SHA for 28a19bf
src/libcore/cell.rs
@@ -616,7 +616,7 @@ impl<T> RefCell<T> {
616
/// assert_eq!(cell, RefCell::new(6));
617
/// ```
618
#[inline]
619
- #[unstable(feature = "refcell_replace_swap", issue="43570")]
+ #[unstable(feature = "refcell_replace_with", issue="43570")]
620
pub fn replace_with<F: FnOnce(&mut T) -> T>(&self, f: F) -> T {
621
let mut_borrow = &mut *self.borrow_mut();
622
let replacement = f(mut_borrow);
0 commit comments