From c1e63477174798e3e04b4c7cfda6c8358e462d18 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 21 Jun 2018 18:08:11 -0700 Subject: [PATCH] fixed minor typos, detected by @terrelln --- doc/zstd_compression_format.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/zstd_compression_format.md b/doc/zstd_compression_format.md index 91838f757..62430e48f 100644 --- a/doc/zstd_compression_format.md +++ b/doc/zstd_compression_format.md @@ -652,7 +652,7 @@ They follow the same enumeration : - `Predefined_Mode` : A predefined FSE distribution table is used, defined in [default distributions](#default-distributions). No distribution table will be present. -- `RLE_Mode` : The table description consists of a single byte, which contain symbol's value. +- `RLE_Mode` : The table description consists of a single byte, which contains the symbol's value. This symbol will be used for all sequences. - `FSE_Compressed_Mode` : standard FSE compression. A distribution table will be present. @@ -754,7 +754,7 @@ supporting back-reference distances up to `(2^(N+1))-4`, but is limited by [maximum back-reference distance](#window_descriptor). `Offset_Value` from 1 to 3 are special : they define "repeat codes". -This is described in more details in [Repeat Offsets](#repeat-offsets). +This is described in more detail in [Repeat Offsets](#repeat-offsets). #### Decoding Sequences FSE bitstreams are read in reverse direction than written. In zstd, @@ -1281,7 +1281,7 @@ symbols for each of the final states are decoded and the process is complete. #### Conversion from weights to Huffman prefix codes All present symbols shall now have a `Weight` value. -It is possible to transform weights into` Number_of_Bits`, using this formula: +It is possible to transform weights into `Number_of_Bits`, using this formula: ``` Number_of_Bits = (Weight>0) ? Max_Number_of_Bits + 1 - Weight : 0 ``` -- 2.47.2