From 57478b2c64830a9a343006c85b6d284e3fa29975 Mon Sep 17 00:00:00 2001 From: Tim Vilgot Mikael Fredenberg <26655508+vilgotf@users.noreply.github.com> Date: Sat, 1 Feb 2025 06:30:13 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Erk --- book/src/chapter_1_crates/section_3_gateway.md | 2 +- twilight-gateway/src/compression.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(),