You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by printfcoder <gi...@git.apache.org> on 2018/06/08 12:28:32 UTC

[GitHub] commons-lang issue #327: (doc) Remove invalid example of `lastIndexOf` from ...

Github user printfcoder commented on the issue:

    https://github.com/apache/commons-lang/pull/327
  
     `StringUtils.lastIndexOf("aabaabaa", "b", 1)  = -1`
    
    Could you please explain why the result is `1`,please? I see it shoud be 2, because that `to search starts at 1 position and b is at 2 idx`.


---