summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnappy Team <no-reply@google.com>2021-05-20 19:29:12 +0000
committerVictor Costan <costan@google.com>2021-05-25 02:20:42 +0000
commitd8f5dd8ecab790529ee665f4f8a784e9b1b3f687 (patch)
tree06ee6bee59cdf7b54298318560389d5376308fb9
parent2b63814b15a2aaae54b7943f0cd935892fae628f (diff)
downloadsnappy-git-d8f5dd8ecab790529ee665f4f8a784e9b1b3f687.tar.gz
Clarify, in a comment, that offset/256 fits in 3 bits. It has to in this context, because the other 5 bits in the byte are used for len-4 and the tag.
PiperOrigin-RevId: 374926553
-rw-r--r--snappy_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/snappy_unittest.cc b/snappy_unittest.cc
index 7a85635..8782b52 100644
--- a/snappy_unittest.cc
+++ b/snappy_unittest.cc
@@ -905,7 +905,7 @@ TEST(Snappy, VerifyCharTable) {
// COPY_1_BYTE_OFFSET.
//
// The tag byte in the compressed data stores len-4 in 3 bits, and
- // offset/256 in 5 bits. offset%256 is stored in the next byte.
+ // offset/256 in 3 bits. offset%256 is stored in the next byte.
//
// This format is used for length in range [4..11] and offset in
// range [0..2047]