Missing documentation for String::split
#58181
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
split
has the following to say regarding the types that the parameterPattern
can have:However, another, undocumented, option is that the pattern can also be
[&str]
and then each split uses the next item from the slice. This is an awesome feature that is kinda difficult to figure out.For reference:
https://news.ycombinator.com/item?id=19080404
The text was updated successfully, but these errors were encountered: