aboutsummaryrefslogtreecommitdiff
path: root/src/compress
diff options
context:
space:
mode:
authorJohn Bampton <jbampton@gmail.com>2022-05-17 17:09:28 +0000
committerGopher Robot <gobot@golang.org>2022-05-17 19:51:29 +0000
commita6f3f8d97306dc77144b6d3be8cf706c11e2de8f (patch)
tree97640eee93a01cc7e3d906cb1bf6a16cc2934309 /src/compress
parentc25c37137db98323510752f53e93128809a8767c (diff)
downloadgo-a6f3f8d97306dc77144b6d3be8cf706c11e2de8f.tar.gz
go-a6f3f8d97306dc77144b6d3be8cf706c11e2de8f.zip
all: fix spelling
Change-Id: I68538a50c22b02cdb5aa2a889f9440fed7b94c54 GitHub-Last-Rev: aaac9e78340ac482e9cd1b506a035f271c29648c GitHub-Pull-Request: golang/go#52944 Reviewed-on: https://go-review.googlesource.com/c/go/+/406835 Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/compress')
-rw-r--r--src/compress/flate/huffman_code.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compress/flate/huffman_code.go b/src/compress/flate/huffman_code.go
index 9b64d15e75..a3fe80b442 100644
--- a/src/compress/flate/huffman_code.go
+++ b/src/compress/flate/huffman_code.go
@@ -130,7 +130,7 @@ const maxBitsLimit = 16
// maxBits is the maximum number of bits that should be used to encode any literal.
// It must be less than 16.
//
-// bitCounts retruns an integer slice in which slice[i] indicates the number of literals
+// bitCounts returns an integer slice in which slice[i] indicates the number of literals
// that should be encoded in i bits.
func (h *huffmanEncoder) bitCounts(list []literalNode, maxBits int32) []int32 {
if maxBits >= maxBitsLimit {