aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2015-10-29 09:42:00 -0700
committerJoe Tsai <joetsai@digital-static.net>2015-10-29 09:42:00 -0700
commit2ffe45bd670611e4524ac34a0b88c6036754c129 (patch)
tree51eaeb45fe8a2dc314cf2cb6e601e07235ebe585 /docs
parent185cb9eadaafa5098b2c3ef9e4195350e2dc05fa (diff)
downloadbrotli-2ffe45bd670611e4524ac34a0b88c6036754c129.zip
brotli-2ffe45bd670611e4524ac34a0b88c6036754c129.tar.gz
brotli-2ffe45bd670611e4524ac34a0b88c6036754c129.tar.bz2
Clarify Section 4.
* If NDIRECT is zero, then the paragraph reads "from 16 to 15", which doesn't make much sense. Thus, add a conditional to avoid this minor oddity.
Diffstat (limited to 'docs')
-rw-r--r--docs/draft-alakuijala-brotli-07.nroff7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/draft-alakuijala-brotli-07.nroff b/docs/draft-alakuijala-brotli-07.nroff
index 493d59d..3fcc608 100644
--- a/docs/draft-alakuijala-brotli-07.nroff
+++ b/docs/draft-alakuijala-brotli-07.nroff
@@ -845,9 +845,10 @@ not pushed to the ring buffer of last distances.
If a special distance symbol resolves to a zero or negative value, the
stream should be rejected as invalid.
-The next NDIRECT distance symbols, from 16 to 15 + NDIRECT, represent
-distances from 1 to NDIRECT. Neither the distance special symbols, nor
-the NDIRECT direct distance symbols are followed by any extra bits.
+If NDIRECT is greater than zero, then the next NDIRECT distance symbols,
+from 16 to 15 + NDIRECT, represent distances from 1 to NDIRECT.
+Neither the special distance symbols, nor the NDIRECT direct distance
+symbols are followed by any extra bits.
Distance symbols 16 + NDIRECT and greater all have extra bits, where the
number of extra bits for a distance symbol "dcode" is given by the