digitalmars.D.bugs - [Issue 14880] New: findSkip summary is wrong
- via Digitalmars-d-bugs (20/20) Aug 06 2015 https://issues.dlang.org/show_bug.cgi?id=14880
https://issues.dlang.org/show_bug.cgi?id=14880 Issue ID: 14880 Summary: findSkip summary is wrong Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: luis luismarques.eu 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`. --
Aug 06 2015