Fix typo in docs for slice::split_once, slice::rsplit_once

This commit is contained in:
Connor Lane Smith 2024-01-06 11:51:39 +00:00
parent 5cb2e7dfc3
commit 099b15f4fc

View File

@ -2483,7 +2483,7 @@ impl<T> [T] {
/// Splits the slice on the first element that matches the specified
/// predicate.
///
/// If any matching elements are resent in the slice, returns the prefix
/// If any matching elements are present in the slice, returns the prefix
/// before the match and suffix after. The matching element itself is not
/// included. If no elements match, returns `None`.
///
@ -2511,7 +2511,7 @@ impl<T> [T] {
/// Splits the slice on the last element that matches the specified
/// predicate.
///
/// If any matching elements are resent in the slice, returns the prefix
/// If any matching elements are present in the slice, returns the prefix
/// before the match and suffix after. The matching element itself is not
/// included. If no elements match, returns `None`.
///