Attempt to close https://github.com/nim-lang/Nim/issues/11430
This commit is contained in:
parent
da035e9c83
commit
bde899d4f8
3 changed files with 57 additions and 23 deletions
|
|
@ -3,6 +3,13 @@
|
|||
|
||||
### Changes affecting backwards compatibility
|
||||
|
||||
- All `strutils.rfind` procs now take `start` and `last` like `strutils.find`
|
||||
with the same data slice/index meaning. This is backwards compatible for
|
||||
calls *not* changing the `rfind` `start` parameter from its default.
|
||||
|
||||
In the unlikely case that you were using `rfind X, start=N`, or `rfind X, N`,
|
||||
then you need to change that to `rfind X, last=N` or `rfind X, 0, N`. (This
|
||||
should minimize gotchas porting code from other languages like Python or C++.)
|
||||
|
||||
#### Breaking changes in the standard library
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue