Skip to content

Commit

Permalink
Fix test data location and capitalize "Rust"
Browse files Browse the repository at this point in the history
  • Loading branch information
atouchet committed Mar 25, 2021
1 parent f57220f commit eebd171
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/image-rs/deflate-rs"
homepage = "https://github.com/image-rs/deflate-rs"
documentation = "https://docs.rs/deflate/"
description = """
A DEFLATE, zlib and gzip encoder written in rust.
A DEFLATE, zlib and gzip encoder written in Rust.
"""
categories = ["compression"]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Deflate encoding with and without zlib and gzip metadata (zlib dictionaries are

This library is now mostly in maintenance mode, focus being on the Rust backend of [flate2](https://crates.io/crates/flate2) instead.

The minimum required rust version is 1.32.0 due to use of library functions for endinaness conversion (unit tests requires a newer version).
The minimum required Rust version is 1.32.0 due to use of library functions for endinaness conversion (unit tests requires a newer version).

# Usage:
## Simple compression function:
Expand Down Expand Up @@ -48,4 +48,4 @@ bitstream.rs is © @nwin and was released under both MIT and Apache 2.0

Some code in length_encode.rs has been ported from the `miniz` library, which is public domain.

The test data (src/pg11.txt) is borrowed from [Project Gutenberg](https://www.gutenberg.org/ebooks/11) and is available under public domain, or the Project Gutenberg Licence
The test data (tests/pg11.txt) is borrowed from [Project Gutenberg](https://www.gutenberg.org/ebooks/11) and is available under public domain, or the Project Gutenberg Licence
2 changes: 1 addition & 1 deletion src/chained_hash_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Tables {

/// Create and box the hash chains.
fn create_tables() -> Box<Tables> {
// Using default here is a trick to get around the lack of box syntax on stable rust.
// Using default here is a trick to get around the lack of box syntax on stable Rust.
//
// Box::new([0u16,n]) ends up creating an temporary array on the stack which is not optimised
// but using default, which simply calls `box value` internally allows us to get around this.
Expand Down

0 comments on commit eebd171

Please sign in to comment.