diff options
author | Zoom <ZoomRmc@users.noreply.github.com> | 2022-06-07 08:35:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 10:35:06 +0200 |
commit | b024a45163ce1a2224ec5891c81cf2cc7d399f11 (patch) | |
tree | 4d120b86350fd42f9463dad0c715ec53c6635e58 /nimdoc | |
parent | d0232f0e5b97b697a640c2f622c7596ce6d10eb5 (diff) | |
download | Nim-b024a45163ce1a2224ec5891c81cf2cc7d399f11.tar.gz |
Fix `find` routines' api to default to `last=-1` (#19761)
This changes the default for the `last` parameter of various `find` routines from `0` to `-1`. Previous default prevents limiting the search to the first character. This is a logic error, as full text search was performed for 2 *valid* values of `last`: `0` and `last.high()`. Adds an overload for `initSkipTable` which returns a newly initialized table. This encapsulates every single usage of a `var`-acting original func in this module. Co-authored-by: flywind <xzsflywind@gmail.com>
Diffstat (limited to 'nimdoc')
0 files changed, 0 insertions, 0 deletions