diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index dc9f4b88c206b..d2690ff64ac48 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -591,7 +591,7 @@ impl RefCell { /// assert_eq!(cell, RefCell::new(6)); /// ``` #[inline] - #[stable(feature = "refcell_replace_swap", since="1.24.0")] + #[stable(feature = "refcell_replace", since="1.24.0")] pub fn replace(&self, t: T) -> T { mem::replace(&mut *self.borrow_mut(), t) } @@ -616,7 +616,7 @@ impl RefCell { /// assert_eq!(cell, RefCell::new(6)); /// ``` #[inline] - #[unstable(feature = "refcell_replace_with", issue="43570")] + #[unstable(feature = "refcell_replace_swap", issue="43570")] pub fn replace_with T>(&self, f: F) -> T { let mut_borrow = &mut *self.borrow_mut(); let replacement = f(mut_borrow); @@ -643,7 +643,7 @@ impl RefCell { /// assert_eq!(d, RefCell::new(5)); /// ``` #[inline] - #[stable(feature = "refcell_replace_swap", since="1.24.0")] + #[stable(feature = "refcell_swap", since="1.24.0")] pub fn swap(&self, other: &Self) { mem::swap(&mut *self.borrow_mut(), &mut *other.borrow_mut()) }