REPL help mode: nothing on strings for lastindex

question

#1

lastindex(str): In https://docs.julialang.org/en/v1/manual/strings/index.html, we see

  • lastindex(str) gives the maximal (byte) index that can be used to index into str .

In REPL help mode: ?lastindex , nothing on strings, only text as seen in https://docs.julialang.org/en/v1/base/collections/#Base.lastindex

I hope that there is something like:

lastindex(str::AbstractString)

gives the maximal (byte) index that can be used to index into str.

Examples

julia> lastindex("")
0

julia> lastindex("∀")
1

lastindex: no message on strings in REPL help mode
#2

Yes, it looks like a docstring would be reasonable for that method, too.

Please open an issue or make a PR.