1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 12:19:04 +01:00

Merge pull request #99 from VitalyAnkh/patch-1

Correct demo code
This commit is contained in:
Nikolay Kim 2019-07-11 14:44:00 +06:00 committed by GitHub
commit fcf28f79b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ complex types are involved.
```rust ```rust
fn index(_req: HttpRequest) -> impl Responder { fn index(_req: HttpRequest) -> impl Responder {
Bytes::from_static("Hello world!") Bytes::from_static(b"Hello world!")
} }
``` ```