diff options
author | cui fliter <imcusg@gmail.com> | 2022-11-11 19:22:35 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-11-18 17:59:44 +0000 |
commit | b2faff18ce28edad98303d2c3134dec1331fd7b5 (patch) | |
tree | 2161dfe37742a6be201f506abf0d4f20533e8d76 /src/compress | |
parent | 893964b9727a3dfcadab75c0f6b3c6b683b9bae0 (diff) | |
download | go-b2faff18ce28edad98303d2c3134dec1331fd7b5.tar.gz go-b2faff18ce28edad98303d2c3134dec1331fd7b5.zip |
all: add missing periods in comments
Change-Id: I69065f8adf101fdb28682c55997f503013a50e29
Reviewed-on: https://go-review.googlesource.com/c/go/+/449757
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joedian Reid <joedian@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/compress')
-rw-r--r-- | src/compress/flate/deflate.go | 2 | ||||
-rw-r--r-- | src/compress/flate/huffman_code.go | 2 | ||||
-rw-r--r-- | src/compress/flate/token.go | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/compress/flate/deflate.go b/src/compress/flate/deflate.go index 93efd7cafb..b53764b552 100644 --- a/src/compress/flate/deflate.go +++ b/src/compress/flate/deflate.go @@ -297,7 +297,7 @@ func hash4(b []byte) uint32 { } // bulkHash4 will compute hashes using the same -// algorithm as hash4 +// algorithm as hash4. func bulkHash4(b []byte, dst []uint32) { if len(b) < minMatchLength { return diff --git a/src/compress/flate/huffman_code.go b/src/compress/flate/huffman_code.go index 6b1aaea2b2..ade4c8fb28 100644 --- a/src/compress/flate/huffman_code.go +++ b/src/compress/flate/huffman_code.go @@ -60,7 +60,7 @@ func newHuffmanEncoder(size int) *huffmanEncoder { return &huffmanEncoder{codes: make([]hcode, size)} } -// Generates a HuffmanCode corresponding to the fixed literal table +// Generates a HuffmanCode corresponding to the fixed literal table. func generateFixedLiteralEncoding() *huffmanEncoder { h := newHuffmanEncoder(maxNumLit) codes := h.codes diff --git a/src/compress/flate/token.go b/src/compress/flate/token.go index ae01391f9c..fc0e4941e7 100644 --- a/src/compress/flate/token.go +++ b/src/compress/flate/token.go @@ -75,17 +75,17 @@ func matchToken(xlength uint32, xoffset uint32) token { return token(matchType + xlength<<lengthShift + xoffset) } -// Returns the literal of a literal token +// Returns the literal of a literal token. func (t token) literal() uint32 { return uint32(t - literalType) } -// Returns the extra offset of a match token +// Returns the extra offset of a match token. func (t token) offset() uint32 { return uint32(t) & offsetMask } func (t token) length() uint32 { return uint32((t - matchType) >> lengthShift) } func lengthCode(len uint32) uint32 { return lengthCodes[len] } -// Returns the offset code corresponding to a specific offset +// Returns the offset code corresponding to a specific offset. func offsetCode(off uint32) uint32 { if off < uint32(len(offsetCodes)) { return offsetCodes[off] |