@@ -591,7 +591,7 @@ impl<T> RefCell<T> {
591591 /// assert_eq!(cell, RefCell::new(6));
592592 /// ```
593593 #[ inline]
594- #[ stable( feature = "refcell_replace_swap " , since="1.24.0" ) ]
594+ #[ stable( feature = "refcell_replace " , since="1.24.0" ) ]
595595 pub fn replace ( & self , t : T ) -> T {
596596 mem:: replace ( & mut * self . borrow_mut ( ) , t)
597597 }
@@ -616,7 +616,7 @@ impl<T> RefCell<T> {
616616 /// assert_eq!(cell, RefCell::new(6));
617617 /// ```
618618 #[ inline]
619- #[ unstable( feature = "refcell_replace_with " , issue="43570" ) ]
619+ #[ unstable( feature = "refcell_replace_swap " , issue="43570" ) ]
620620 pub fn replace_with < F : FnOnce ( & mut T ) -> T > ( & self , f : F ) -> T {
621621 let mut_borrow = & mut * self . borrow_mut ( ) ;
622622 let replacement = f ( mut_borrow) ;
@@ -643,7 +643,7 @@ impl<T> RefCell<T> {
643643 /// assert_eq!(d, RefCell::new(5));
644644 /// ```
645645 #[ inline]
646- #[ stable( feature = "refcell_replace_swap " , since="1.24.0" ) ]
646+ #[ stable( feature = "refcell_swap " , since="1.24.0" ) ]
647647 pub fn swap ( & self , other : & Self ) {
648648 mem:: swap ( & mut * self . borrow_mut ( ) , & mut * other. borrow_mut ( ) )
649649 }
0 commit comments