diff --git a/book/src/chapter_1_crates/section_3_gateway.md b/book/src/chapter_1_crates/section_3_gateway.md index 1a9fb2d11f..2855a632b5 100644 --- a/book/src/chapter_1_crates/section_3_gateway.md +++ b/book/src/chapter_1_crates/section_3_gateway.md @@ -84,7 +84,7 @@ the dependency tree it will make use of that instead of [zlib-ng]. The `zstd` feature uses Facebook's zstd library to decompresses incoming messages. -This feature is mutually exclusive with the zlib features. +This feature takes precedence over the zlib features. ## Example diff --git a/twilight-gateway/src/compression.rs b/twilight-gateway/src/compression.rs index 63a6922412..3d9be9254f 100644 --- a/twilight-gateway/src/compression.rs +++ b/twilight-gateway/src/compression.rs @@ -89,7 +89,7 @@ impl Decompressor { /// [`Self::buffer`]'s size. const BUFFER_SIZE: usize = 32 * 1024; - /// Create a new inflator for a shard. + /// Create a new decompressor for a shard. pub fn new() -> Self { Self { buffer: vec![0; Decompressor::BUFFER_SIZE].into_boxed_slice(),