@@ -195,7 +195,7 @@ impl<T> [T] {
195195 core_slice:: SliceExt :: is_empty ( self )
196196 }
197197
198- /// Returns the first element of a slice, or `None` if it is empty.
198+ /// Returns the first element of the slice, or `None` if it is empty.
199199 ///
200200 /// # Examples
201201 ///
@@ -212,7 +212,7 @@ impl<T> [T] {
212212 core_slice:: SliceExt :: first ( self )
213213 }
214214
215- /// Returns a mutable pointer to the first element of a slice, or `None` if it is empty.
215+ /// Returns a mutable pointer to the first element of the slice, or `None` if it is empty.
216216 ///
217217 /// # Examples
218218 ///
@@ -230,7 +230,7 @@ impl<T> [T] {
230230 core_slice:: SliceExt :: first_mut ( self )
231231 }
232232
233- /// Returns the first and all the rest of the elements of a slice, or `None` if it is empty.
233+ /// Returns the first and all the rest of the elements of the slice, or `None` if it is empty.
234234 ///
235235 /// # Examples
236236 ///
@@ -248,7 +248,7 @@ impl<T> [T] {
248248 core_slice:: SliceExt :: split_first ( self )
249249 }
250250
251- /// Returns the first and all the rest of the elements of a slice, or `None` if it is empty.
251+ /// Returns the first and all the rest of the elements of the slice, or `None` if it is empty.
252252 ///
253253 /// # Examples
254254 ///
@@ -268,7 +268,7 @@ impl<T> [T] {
268268 core_slice:: SliceExt :: split_first_mut ( self )
269269 }
270270
271- /// Returns the last and all the rest of the elements of a slice, or `None` if it is empty.
271+ /// Returns the last and all the rest of the elements of the slice, or `None` if it is empty.
272272 ///
273273 /// # Examples
274274 ///
@@ -287,7 +287,7 @@ impl<T> [T] {
287287
288288 }
289289
290- /// Returns the last and all the rest of the elements of a slice, or `None` if it is empty.
290+ /// Returns the last and all the rest of the elements of the slice, or `None` if it is empty.
291291 ///
292292 /// # Examples
293293 ///
@@ -307,7 +307,7 @@ impl<T> [T] {
307307 core_slice:: SliceExt :: split_last_mut ( self )
308308 }
309309
310- /// Returns the last element of a slice, or `None` if it is empty.
310+ /// Returns the last element of the slice, or `None` if it is empty.
311311 ///
312312 /// # Examples
313313 ///
@@ -485,7 +485,7 @@ impl<T> [T] {
485485 core_slice:: SliceExt :: as_mut_ptr ( self )
486486 }
487487
488- /// Swaps two elements in a slice.
488+ /// Swaps two elements in the slice.
489489 ///
490490 /// # Arguments
491491 ///
@@ -509,7 +509,7 @@ impl<T> [T] {
509509 core_slice:: SliceExt :: swap ( self , a, b)
510510 }
511511
512- /// Reverses the order of elements in a slice, in place.
512+ /// Reverses the order of elements in the slice, in place.
513513 ///
514514 /// # Example
515515 ///
@@ -955,7 +955,7 @@ impl<T> [T] {
955955 core_slice:: SliceExt :: ends_with ( self , needle)
956956 }
957957
958- /// Binary search a sorted slice for a given element.
958+ /// Binary searches this sorted slice for a given element.
959959 ///
960960 /// If the value is found then `Ok` is returned, containing the
961961 /// index of the matching element; if the value is not found then
@@ -984,7 +984,7 @@ impl<T> [T] {
984984 core_slice:: SliceExt :: binary_search ( self , x)
985985 }
986986
987- /// Binary search a sorted slice with a comparator function.
987+ /// Binary searches this sorted slice with a comparator function.
988988 ///
989989 /// The comparator function should implement an order consistent
990990 /// with the sort order of the underlying slice, returning an
@@ -1023,7 +1023,7 @@ impl<T> [T] {
10231023 core_slice:: SliceExt :: binary_search_by ( self , f)
10241024 }
10251025
1026- /// Binary search a sorted slice with a key extraction function.
1026+ /// Binary searches this sorted slice with a key extraction function.
10271027 ///
10281028 /// Assumes that the slice is sorted by the key, for instance with
10291029 /// [`sort_by_key`] using the same key extraction function.
@@ -1092,7 +1092,7 @@ impl<T> [T] {
10921092 merge_sort ( self , |a, b| a. lt ( b) ) ;
10931093 }
10941094
1095- /// Sorts the slice using `compare` to compare elements .
1095+ /// Sorts the slice with a comparator function .
10961096 ///
10971097 /// This sort is stable (i.e. does not reorder equal elements) and `O(n log n)` worst-case.
10981098 ///
@@ -1125,7 +1125,7 @@ impl<T> [T] {
11251125 merge_sort ( self , |a, b| compare ( a, b) == Less ) ;
11261126 }
11271127
1128- /// Sorts the slice using `f` to extract a key to compare elements by .
1128+ /// Sorts the slice with a key extraction function .
11291129 ///
11301130 /// This sort is stable (i.e. does not reorder equal elements) and `O(n log n)` worst-case.
11311131 ///
@@ -1191,8 +1191,8 @@ impl<T> [T] {
11911191 core_slice:: SliceExt :: sort_unstable ( self ) ;
11921192 }
11931193
1194- /// Sorts the slice using `compare` to compare elements , but may not preserve the order of
1195- /// equal elements.
1194+ /// Sorts the slice with a comparator function , but may not preserve the order of equal
1195+ /// elements.
11961196 ///
11971197 /// This sort is unstable (i.e. may reorder equal elements), in-place (i.e. does not allocate),
11981198 /// and `O(n log n)` worst-case.
@@ -1231,8 +1231,8 @@ impl<T> [T] {
12311231 core_slice:: SliceExt :: sort_unstable_by ( self , compare) ;
12321232 }
12331233
1234- /// Sorts the slice using `f` to extract a key to compare elements by , but may not preserve the
1235- /// order of equal elements.
1234+ /// Sorts the slice with a key extraction function , but may not preserve the order of equal
1235+ /// elements.
12361236 ///
12371237 /// This sort is unstable (i.e. may reorder equal elements), in-place (i.e. does not allocate),
12381238 /// and `O(n log n)` worst-case.
@@ -1313,7 +1313,6 @@ impl<T> [T] {
13131313 core_slice:: SliceExt :: copy_from_slice ( self , src)
13141314 }
13151315
1316-
13171316 /// Copies `self` into a new `Vec`.
13181317 ///
13191318 /// # Examples
0 commit comments