Skip to content

Commit dcc1e93

Browse files
authored
Fix incorrect example in findlast documentation (#60203)
Replaced findfirst with findlast in the findlast docstring example. Fixes #60172.
1 parent 363d45c commit dcc1e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/strings/search.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Find the last occurrence of `pattern` in `string`. Equivalent to
535535
julia> findlast("o", "Hello to the world")
536536
15:15
537537
538-
julia> findfirst("Julia", "JuliaLang")
538+
julia> findlast("Julia", "JuliaLang")
539539
1:5
540540
```
541541
"""

0 commit comments

Comments
 (0)