diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-06 21:51:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-06 21:51:46 -0500 |
| commit | 5117dc7a5bd8a9899207087eeaac8c8512c66bae (patch) | |
| tree | 3adcb6158968c660a8fd4feced0b140f619b6804 | |
| parent | e63a32e622bbb5fa29f732cb3701c6efba140da0 (diff) | |
| parent | 099b15f4fc7620a9fe389f2d9aa239d563762632 (diff) | |
| download | rust-5117dc7a5bd8a9899207087eeaac8c8512c66bae.tar.gz rust-5117dc7a5bd8a9899207087eeaac8c8512c66bae.zip | |
Rollup merge of #119657 - cls:slice_split_once-typo, r=ChrisDenton
Fix typo in docs for slice::split_once, slice::rsplit_once This fixes a typo in the doc comments for these methods, which I tripped over while reading the docs: "If any matching elements are **resent** in the slice [...]", which is presumably meant to read **present**. I mentioned this in #112811, the tracking issue for `slice_split_once`, and was encouraged to open a PR.
| -rw-r--r-- | library/core/src/slice/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index b14d9712794..5edc89e4cb5 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -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`. /// |
