mirror of
https://github.com/actix/actix-website
synced 2025-01-23 00:25:55 +01:00
Correct demo code
This commit is contained in:
parent
0d1a2f2e7c
commit
c399dc6e52
@ -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!")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user