File tree 1 file changed +4
-4
lines changed
library/alloc/src/collections/btree
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -903,8 +903,8 @@ impl<T> BTreeSet<T> {
903
903
self . map . append ( & mut other. map ) ;
904
904
}
905
905
906
- /// Splits the collection into two at the given key . Returns everything after the given key ,
907
- /// including the key .
906
+ /// Splits the collection into two at the given value . Returns everything after the given value ,
907
+ /// including the value .
908
908
///
909
909
/// # Examples
910
910
///
@@ -933,11 +933,11 @@ impl<T> BTreeSet<T> {
933
933
/// assert!(b.contains(&41));
934
934
/// ```
935
935
#[ stable( feature = "btree_split_off" , since = "1.11.0" ) ]
936
- pub fn split_off < Q : ?Sized + Ord > ( & mut self , key : & Q ) -> Self
936
+ pub fn split_off < Q : ?Sized + Ord > ( & mut self , value : & Q ) -> Self
937
937
where
938
938
T : Borrow < Q > + Ord ,
939
939
{
940
- BTreeSet { map : self . map . split_off ( key ) }
940
+ BTreeSet { map : self . map . split_off ( value ) }
941
941
}
942
942
943
943
/// Creates an iterator that visits all values in ascending order and uses a closure
You can’t perform that action at this time.
0 commit comments