From 11572816b4182c92eb282d78da7eeddda2bf0714 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 21 Sep 2020 15:41:48 +0200 Subject: [PATCH] Add punctuation. Change-Id: I614f77609038e99b72d456bdf37f86db1ee36449 --- src/compress/flate/deflatefast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compress/flate/deflatefast.go b/src/compress/flate/deflatefast.go index a91f956b5e59db..edab5c25a1f9ea 100644 --- a/src/compress/flate/deflatefast.go +++ b/src/compress/flate/deflatefast.go @@ -270,7 +270,7 @@ func (e *deflateFast) matchLen(s, t int32, src []byte) int32 { func (e *deflateFast) reset() { e.prev = e.prev[:0] // Bump the offset, so all matches will fail distance check. - // Nothing should be >= e.cur in the table + // Nothing should be >= e.cur in the table. e.cur += maxMatchOffset // Protect against e.cur wraparound. @@ -297,7 +297,7 @@ func (e *deflateFast) shiftOffsets() { for i := range e.table[:] { v := e.table[i].offset - e.cur + maxMatchOffset + 1 if v < 0 { - // Indicate that this is invalid + // Indicate that this table entry is invalid. v = 0 } e.table[i].offset = v