Skip to content

Commit 099b15f

Browse files
committed
Fix typo in docs for slice::split_once, slice::rsplit_once
1 parent 5cb2e7d commit 099b15f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,7 @@ impl<T> [T] {
24832483
/// Splits the slice on the first element that matches the specified
24842484
/// predicate.
24852485
///
2486-
/// If any matching elements are resent in the slice, returns the prefix
2486+
/// If any matching elements are present in the slice, returns the prefix
24872487
/// before the match and suffix after. The matching element itself is not
24882488
/// included. If no elements match, returns `None`.
24892489
///
@@ -2511,7 +2511,7 @@ impl<T> [T] {
25112511
/// Splits the slice on the last element that matches the specified
25122512
/// predicate.
25132513
///
2514-
/// If any matching elements are resent in the slice, returns the prefix
2514+
/// If any matching elements are present in the slice, returns the prefix
25152515
/// before the match and suffix after. The matching element itself is not
25162516
/// included. If no elements match, returns `None`.
25172517
///

0 commit comments

Comments
 (0)