diff options
author | zetashift <rskaraya@gmail.com> | 2021-02-26 15:08:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 15:08:48 +0100 |
commit | c7d6e4c6a6078075433828ccec6a7f4351d6a096 (patch) | |
tree | aa6aef3a95c4c3bfb58841e2d3ead77b9ed8647e /tests/nimdoc/trunnableexamples.nim | |
parent | 63f1c38f4e0c6f8700a8877d5f3f6f2ac0fc16e6 (diff) | |
download | Nim-c7d6e4c6a6078075433828ccec6a7f4351d6a096.tar.gz |
Fix unicode.split with seperators examples (#17176)
* Fix unicode.split with seperators examples https://nim-lang.org/docs/unicode.html#split.i%2Cstring%2CRune%2Cint didn't work with the set constructor `{}` so replaced it with a string that's converted to an openArray compatible type containing `Rune`s. * Add runnableExamples to unicode.split * Add runnableExamples to split with single separator too * Simplify runnableExamples unicode.split * Improve the rest of the runnableExamples with the simplified code * Simplify runnableExamples of unicode.split even more * Formatted unicode.split example * Update lib/pure/unicode.nim Co-authored-by: zetashift <rishi2@laptop.localdomain> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Diffstat (limited to 'tests/nimdoc/trunnableexamples.nim')
0 files changed, 0 insertions, 0 deletions