From eebd17127a6d75a2af42267793123d54e4427915 Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Thu, 25 Mar 2021 09:55:30 -0700 Subject: [PATCH] Fix test data location and capitalize "Rust" --- Cargo.toml | 2 +- README.md | 4 ++-- src/chained_hash_table.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c1f511a..c8291d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/README.md b/README.md index 772cb69..6cfb130 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 diff --git a/src/chained_hash_table.rs b/src/chained_hash_table.rs index ba20879..61c3fa2 100644 --- a/src/chained_hash_table.rs +++ b/src/chained_hash_table.rs @@ -32,7 +32,7 @@ impl Tables { /// Create and box the hash chains. fn create_tables() -> Box { - // 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.