From 17a5be861926afb99fb7fdc808bc44622780d27e Mon Sep 17 00:00:00 2001 From: Zhang Yizhi Date: Wed, 18 Dec 2024 19:16:16 +0800 Subject: [PATCH] util: fix typo in API documentation --- tokio-util/src/codec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-util/src/codec/mod.rs b/tokio-util/src/codec/mod.rs index 50f01c28fa7..11f44133e69 100644 --- a/tokio-util/src/codec/mod.rs +++ b/tokio-util/src/codec/mod.rs @@ -224,7 +224,7 @@ //! The main method on the `Encoder` trait is the [`encode`] method. This method //! takes an item that is being written, and a buffer to write the item to. The //! buffer may already contain data, and in this case, the encoder should append -//! the new frame the to buffer rather than overwrite the existing data. +//! the new frame to the buffer rather than overwrite the existing data. //! //! It is guaranteed that, from one call to `encode` to another, the provided //! buffer will contain the exact same data as before, except that some of the