[Issue 14880] New: findSkip summary is wrong

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 6 10:39:48 PDT 2015


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 at puremagic.com
          Reporter: luis at 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`.

--


More information about the Digitalmars-d-bugs mailing list