aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorJosselin Costanzi <josselin@costanzi.fr>2017-03-22 20:26:33 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-03-22 19:41:54 +0000
commit0d3cd51c9c0eeec13aa0c2eb139659ebc7d09008 (patch)
tree2dfd020844ffb9c00e72060eddfc59238b57d539 /src/bytes
parent352e19c92c780e0c5592f1ddaa0b81b1ea1a66af (diff)
downloadgo-0d3cd51c9c0eeec13aa0c2eb139659ebc7d09008.tar.xz
bytes: fix typo in comment
Change-Id: Ia739337dc9961422982912cc6a669022559fb991 Reviewed-on: https://go-review.googlesource.com/38365 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/bytes')
-rw-r--r--src/bytes/bytes_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes/bytes_amd64.go b/src/bytes/bytes_amd64.go
index 5b42f272d0..ac9c002d6d 100644
--- a/src/bytes/bytes_amd64.go
+++ b/src/bytes/bytes_amd64.go
@@ -95,7 +95,7 @@ func Index(s, sep []byte) int {
return -1
}
-// Special case for when we must count occurences of a single byte.
+// Special case for when we must count occurrences of a single byte.
func countByte(s []byte, c byte) int
// Count counts the number of non-overlapping instances of sep in s.