@@ -591,7 +591,7 @@ impl<T> RefCell<T> {
591
591
/// assert_eq!(cell, RefCell::new(6));
592
592
/// ```
593
593
#[ inline]
594
- #[ stable( feature = "refcell_replace_swap " , since="1.24.0" ) ]
594
+ #[ stable( feature = "refcell_replace " , since="1.24.0" ) ]
595
595
pub fn replace ( & self , t : T ) -> T {
596
596
mem:: replace ( & mut * self . borrow_mut ( ) , t)
597
597
}
@@ -616,7 +616,7 @@ impl<T> RefCell<T> {
616
616
/// assert_eq!(cell, RefCell::new(6));
617
617
/// ```
618
618
#[ inline]
619
- #[ unstable( feature = "refcell_replace_with " , issue="43570" ) ]
619
+ #[ unstable( feature = "refcell_replace_swap " , issue="43570" ) ]
620
620
pub fn replace_with < F : FnOnce ( & mut T ) -> T > ( & self , f : F ) -> T {
621
621
let mut_borrow = & mut * self . borrow_mut ( ) ;
622
622
let replacement = f ( mut_borrow) ;
@@ -643,7 +643,7 @@ impl<T> RefCell<T> {
643
643
/// assert_eq!(d, RefCell::new(5));
644
644
/// ```
645
645
#[ inline]
646
- #[ stable( feature = "refcell_replace_swap " , since="1.24.0" ) ]
646
+ #[ stable( feature = "refcell_swap " , since="1.24.0" ) ]
647
647
pub fn swap ( & self , other : & Self ) {
648
648
mem:: swap ( & mut * self . borrow_mut ( ) , & mut * other. borrow_mut ( ) )
649
649
}
0 commit comments