Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Erk <[email protected]>
  • Loading branch information
vilgotf and Erk- authored Feb 1, 2025
1 parent cb20d64 commit 57478b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/chapter_1_crates/section_3_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion twilight-gateway/src/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 57478b2

Please sign in to comment.