From c399dc6e528b0ee127bab75e7d34b06dd4ca2e91 Mon Sep 17 00:00:00 2001 From: VitalyR Date: Thu, 11 Jul 2019 16:36:16 +0800 Subject: [PATCH] Correct demo code --- content/docs/handlers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/handlers.md b/content/docs/handlers.md index d67cb33..456271e 100644 --- a/content/docs/handlers.md +++ b/content/docs/handlers.md @@ -38,7 +38,7 @@ complex types are involved. ```rust fn index(_req: HttpRequest) -> impl Responder { - Bytes::from_static("Hello world!") + Bytes::from_static(b"Hello world!") } ```