Skip to content

Commit 16a921f

Browse files
authored
docs(example): change suggestion in echo.rs for windows compat (hyperium#3220)
The suggested curl statement should work for all users out-of-the-box. Regression tested against windows, macos, and linux (dev container).
1 parent d4295eb commit 16a921f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/echo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async fn echo(
1818
match (req.method(), req.uri().path()) {
1919
// Serve some instructions at /
2020
(&Method::GET, "/") => Ok(Response::new(full(
21-
"Try POSTing data to /echo such as: `curl localhost:3000/echo -XPOST -d 'hello world'`",
21+
"Try POSTing data to /echo such as: `curl localhost:3000/echo -XPOST -d \"hello world\"`",
2222
))),
2323

2424
// Simply echo the body back to the client.

0 commit comments

Comments
 (0)