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: nob...@puremagic.com
          Reporter: l...@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`.

--

Reply via email to