mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Fix typo in docs for slice::split_once, slice::rsplit_once
This commit is contained in:
parent
5cb2e7dfc3
commit
099b15f4fc
@ -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`.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user