@@ -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.
233+ /// Returns the first and all the rest of the elements of a 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.
251+ /// Returns the first and all the rest of the elements of a 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.
271+ /// Returns the last and all the rest of the elements of a 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.
290+ /// Returns the last and all the rest of the elements of a slice, or `None` if it is empty .
291291 ///
292292 /// # Examples
293293 ///
@@ -437,8 +437,8 @@ impl<T> [T] {
437437 /// The caller must ensure that the slice outlives the pointer this
438438 /// function returns, or else it will end up pointing to garbage.
439439 ///
440- /// Modifying the slice may cause its buffer to be reallocated, which
441- /// would also make any pointers to it invalid.
440+ /// Modifying the container referenced by this slice may cause its buffer
441+ /// to be reallocated, which would also make any pointers to it invalid.
442442 ///
443443 /// # Examples
444444 ///
@@ -463,8 +463,8 @@ impl<T> [T] {
463463 /// The caller must ensure that the slice outlives the pointer this
464464 /// function returns, or else it will end up pointing to garbage.
465465 ///
466- /// Modifying the slice may cause its buffer to be reallocated, which
467- /// would also make any pointers to it invalid.
466+ /// Modifying the container referenced by this slice may cause its buffer
467+ /// to be reallocated, which would also make any pointers to it invalid.
468468 ///
469469 /// # Examples
470470 ///
0 commit comments