Skip to content

Commit

Permalink
Correct typo in zlib.h comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed May 17, 2024
1 parent 1b70083 commit 0f3b7b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,11 @@ ZEXTERN int ZEXPORT deflateInit2(z_streamp strm,
Z_RLE is almost as fast as Z_HUFFMAN_ONLY, but should give better
compression for PNG image data than Huffman only. The degree of string
matching from most to none is: Z_DEFAULT_STRATEGY, Z_FILTERED, Z_RLE, then
Z_HUFFMAN. The strategy parameter affects the compression ratio but never
the correctness of the compressed output, even if it is not set optimally
for the given data. Z_FIXED uses the default string matching, but prevents
the use of dynamic Huffman codes, allowing for a simpler decoder for special
applications.
Z_HUFFMAN_ONLY. The strategy parameter affects the compression ratio but
never the correctness of the compressed output, even if it is not set
optimally for the given data. Z_FIXED uses the default string matching, but
prevents the use of dynamic Huffman codes, allowing for a simpler decoder
for special applications.
deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
memory, Z_STREAM_ERROR if any parameter is invalid (such as an invalid
Expand Down

0 comments on commit 0f3b7b9

Please sign in to comment.