1
0
mirror of https://github.com/actix/actix-website synced 2025-01-22 16:15:56 +01:00

Correct demo code

This commit is contained in:
VitalyR 2019-07-11 16:36:16 +08:00 committed by GitHub
parent 0d1a2f2e7c
commit c399dc6e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!")
}
```