mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
std.algorithm: improve findSplit methods module documentation
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
This commit is contained in:
parent
f6cfa2af2a
commit
882cf3df43
1 changed files with 4 additions and 4 deletions
|
@ -47,13 +47,13 @@ $(T2 findSkip,
|
|||
leaves `a` unchanged, whereas `findSkip(a, "c")` advances `a`
|
||||
to `"de"` and returns `true`.)
|
||||
$(T2 findSplit,
|
||||
`findSplit("abcdefg", "de")` returns the three ranges `"abc"`,
|
||||
`findSplit("abcdefg", "de")` returns a tuple of three ranges `"abc"`,
|
||||
`"de"`, and `"fg"`.)
|
||||
$(T2 findSplitAfter,
|
||||
`findSplitAfter("abcdefg", "de")` returns the two ranges
|
||||
`"abcde"` and `"fg"`.)
|
||||
`findSplitAfter("abcdefg", "de")` returns a tuple of two ranges `"abcde"`
|
||||
and `"fg"`.)
|
||||
$(T2 findSplitBefore,
|
||||
`findSplitBefore("abcdefg", "de")` returns the two ranges `"abc"`
|
||||
`findSplitBefore("abcdefg", "de")` returns a tuple of two ranges `"abc"`
|
||||
and `"defg"`.)
|
||||
$(T2 minCount,
|
||||
`minCount([2, 1, 1, 4, 1])` returns `tuple(1, 3)`.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue