doc: fix wrong example for String.split (#13787)
This PR fixes a small docsting error for `String.split`.
This commit is contained in:
parent
8f49fe9864
commit
df2a367958
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ Examples:
|
||||||
* {lean}`("coffee tea water".split Char.isWhitespace).toList == ["coffee".toSlice, "tea".toSlice, "water".toSlice]`
|
* {lean}`("coffee tea water".split Char.isWhitespace).toList == ["coffee".toSlice, "tea".toSlice, "water".toSlice]`
|
||||||
* {lean}`("coffee tea water".split ' ').toList == ["coffee".toSlice, "tea".toSlice, "water".toSlice]`
|
* {lean}`("coffee tea water".split ' ').toList == ["coffee".toSlice, "tea".toSlice, "water".toSlice]`
|
||||||
* {lean}`("coffee tea water".split " tea ").toList == ["coffee".toSlice, "water".toSlice]`
|
* {lean}`("coffee tea water".split " tea ").toList == ["coffee".toSlice, "water".toSlice]`
|
||||||
* {lean}`("ababababa".split "aba").toList == ["coffee".toSlice, "water".toSlice]`
|
* {lean}`("ababababa".split "aba").toList == ["".toSlice, "b".toSlice, "ba".toSlice]`
|
||||||
* {lean}`("baaab".split "aa").toList == ["b".toSlice, "ab".toSlice]`
|
* {lean}`("baaab".split "aa").toList == ["b".toSlice, "ab".toSlice]`
|
||||||
-/
|
-/
|
||||||
@[inline]
|
@[inline]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue