www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14880] New: findSkip summary is wrong


          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