From dc1894105bfacb541d219804d7678b5108f54359 Mon Sep 17 00:00:00 2001 From: David Kleingeld Date: Tue, 28 Dec 2021 15:08:37 +0100 Subject: [PATCH] codec: improve `Builder::max_frame_length` docs (#4352) --- tokio-util/src/codec/length_delimited.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-util/src/codec/length_delimited.rs b/tokio-util/src/codec/length_delimited.rs index 7135d7ce4..de0eb4e92 100644 --- a/tokio-util/src/codec/length_delimited.rs +++ b/tokio-util/src/codec/length_delimited.rs @@ -746,7 +746,7 @@ impl Builder { } } - /// Sets the max frame length + /// Sets the max frame length in bytes /// /// This configuration option applies to both encoding and decoding. The /// default value is 8MB. @@ -767,7 +767,7 @@ impl Builder { /// /// # fn bind_read(io: T) { /// LengthDelimitedCodec::builder() - /// .max_frame_length(8 * 1024) + /// .max_frame_length(8 * 1024 * 1024) /// .new_read(io); /// # } /// # pub fn main() {}