Skip to content

Commit 045ef11

Browse files
authored
Merge pull request #164 from hitjackma/main
fix: Update LastIndexOf sample code in README.rst
2 parents 9128f36 + 26e3d21 commit 045ef11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if the value cannot be found.
204204
205205
// slice of string
206206
funk.LastIndexOf([]string{"foo", "bar", "bar"}, "bar") // 2
207-
funk.LastIndexOf([]string{"foo", "bar"}, func(value string) bool {
207+
funk.LastIndexOf([]string{"foo", "bar", "bar"}, func(value string) bool {
208208
return value == "bar"
209209
}) // 2
210210
funk.LastIndexOf([]string{"foo", "bar"}, "gilles") // -1

0 commit comments

Comments
 (0)