Skip to content

Commit 1236e11

Browse files
oddgrdseanmonstar
authored andcommitted
refactor(server): rephrasing
1 parent f758167 commit 1236e11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_guides/server/echo.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ We want to collect the entire request body and map the result into our `reverse`
172172
function, then return the eventual result. If we import the `http_body_util::BodyExt`
173173
extension trait, we can call the `collect` method on our body, which will drive the
174174
stream to completion, collecting all the data and trailer frames into a `Collected` type.
175-
We can easily turn the `Collected` body into bytes by calling its `into_bytes` method.
175+
We can easily turn the `Collected` body into a single `Bytes` by calling its `into_bytes`
176+
method.
176177

177178
```rust
178179
# use bytes::Bytes;

0 commit comments

Comments
 (0)