From 3816c01125fac1a57172e62a228f64b54c4e7077 Mon Sep 17 00:00:00 2001 From: Isaac Cloos Date: Fri, 5 May 2023 00:50:34 -0400 Subject: [PATCH] fix(example): change suggestion for windows compat The suggested curl statement should work for all users out-of-the-box. Regression tested against windows, macos, and linux (dev container). --- examples/echo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/echo.rs b/examples/echo.rs index a644996b3c..7d3478a666 100644 --- a/examples/echo.rs +++ b/examples/echo.rs @@ -18,7 +18,7 @@ async fn echo( match (req.method(), req.uri().path()) { // Serve some instructions at / (&Method::GET, "/") => Ok(Response::new(full( - "Try POSTing data to /echo such as: `curl localhost:3000/echo -XPOST -d 'hello world'`", + "Try POSTing data to /echo such as: `curl localhost:3000/echo -XPOST -d \"hello world\"`", ))), // Simply echo the body back to the client.