1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

improve body docs

This commit is contained in:
Rob Ede
2022-01-23 03:57:08 +00:00
parent c92aa31f91
commit 008753f07a
4 changed files with 71 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ impl fmt::Debug for BoxBodyInner {
}
impl BoxBody {
/// Same as `MessageBody::boxed`.
/// Boxes body type, erasing type information.
///
/// If the body type to wrap is unknown or generic it is better to use [`MessageBody::boxed`] to
/// avoid double boxing.