diff --git a/src/types/payload.rs b/src/types/payload.rs index ad0bfd14..ce4a9cb1 100644 --- a/src/types/payload.rs +++ b/src/types/payload.rs @@ -191,6 +191,9 @@ fn bytes_to_string(body: Bytes, encoding: &'static Encoding) -> Result Self { Self { limit, @@ -206,7 +209,7 @@ impl PayloadConfig { } } - /// Set maximum accepted payload size. The default limit is 256kB. + /// Set maximum accepted payload size in bytes. The default limit is 256kB. pub fn limit(mut self, limit: usize) -> Self { self.limit = limit; self