diff options
author | Russ Cox <rsc@golang.org> | 2009-10-12 10:09:35 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-12 10:09:35 -0700 |
commit | f2fcd2eb6650a2ee092139dfe0faca587576bdcd (patch) | |
tree | 8fb20b6f0ebab58fce3d0ad6363f4c844e1654cd /src/pkg/strings/strings.go | |
parent | 1ec7f0285bddd3bc1e8534fea6077a8b6f841f15 (diff) | |
download | golang-f2fcd2eb6650a2ee092139dfe0faca587576bdcd.tar.gz |
fix comment on strings.LastIndex.
add bytes.LastIndex.
add strings.Reader.
R=r
DELTA=59 (56 added, 0 deleted, 3 changed)
OCL=35585
CL=35601
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 { |