diff options
Diffstat (limited to 'src/pkg/strings/strings.go')
-rw-r--r-- | src/pkg/strings/strings.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/strings/strings.go b/src/pkg/strings/strings.go index bb1b8b231..f4b969b42 100644 --- a/src/pkg/strings/strings.go +++ b/src/pkg/strings/strings.go @@ -64,7 +64,7 @@ func Index(s, sep string) int { return -1 } -// Index returns the index of the last instance of sep in s, or -1 if sep is not present in s. +// LastIndex returns the index of the last instance of sep in s, or -1 if sep is not present in s. func LastIndex(s, sep string) int { n := len(sep); if n == 0 { |