commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fedochet <...@git.apache.org>
Subject [GitHub] commons-lang issue #327: (doc) Remove invalid example of `lastIndexOf` from ...
Date Fri, 08 Jun 2018 12:59:26 GMT
Github user fedochet commented on the issue:

    https://github.com/apache/commons-lang/pull/327
  
    @printfcoder according to [docs](https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html),

    ```
    (lastIndexOf) Returns the index within seq of the last occurrence 
    of the specified character, searching backward starting 
    at the specified index. 
    ```
    So `b` will be searched in range of positions `[0, 1]`, and there's no `b`s in there


---

Mime
View raw message