Skip to content

Commit

Permalink
Merge pull request #164 from hitjackma/main
Browse files Browse the repository at this point in the history
fix: Update LastIndexOf sample code in README.rst
  • Loading branch information
thoas committed Jun 20, 2023
2 parents 9128f36 + 26e3d21 commit 045ef11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -204,7 +204,7 @@ if the value cannot be found.
// slice of string
funk.LastIndexOf([]string{"foo", "bar", "bar"}, "bar") // 2
funk.LastIndexOf([]string{"foo", "bar"}, func(value string) bool {
funk.LastIndexOf([]string{"foo", "bar", "bar"}, func(value string) bool {
return value == "bar"
}) // 2
funk.LastIndexOf([]string{"foo", "bar"}, "gilles") // -1
Expand Down

0 comments on commit 045ef11

Please sign in to comment.