Bug 14880 – findSkip summary is wrong

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-08-06T17:39:00Z
Last change time
2015-10-04T18:20:14Z
Assigned to
nobody
Creator
luis

Comments

Comment #0 by luis — 2015-08-06T17:39:48Z
In the search algorithms summary (<http://dlang.org/phobos/std_algorithm_searching.html>) we have: findSkip If a = "abcde", then findSkip(a, "x") returns false and leaves a unchanged, whereas findSkip(a, 'c') advances a to "cde" and returns true. This is incorrect. findSkip actually advances to "de". Also, it should be `findSkip(a, "c")`, with double quotes around the `c`.
Comment #1 by ag0aep6g — 2015-08-06T20:27:08Z
Can you make a pull request for this, Luís?
Comment #2 by luis — 2015-08-06T23:20:53Z
(In reply to ag0aep6g from comment #1) > Can you make a pull request for this, Luís? Yes. I just thought experienced people with already cloned repos would do it faster. Give me one or two days (time to go to sleep here).
Comment #3 by luis — 2015-08-10T13:57:38Z
Comment #4 by github-bugzilla — 2015-08-10T14:25:41Z
Comment #5 by github-bugzilla — 2015-10-04T18:20:14Z