mirror of
https://github.com/actix/actix-website
synced 2024-11-27 10:02:57 +01:00
Make Getting Started example compile
Unlike other code I've seen in the guide, this code didn't compile. It's especially bad that it can be the first experience someone has with actix-web, and then doesn't work. I'm going to run through the docs as a first-time user so I'll try to make sure everything works the way it's supposed to.
This commit is contained in:
parent
28b4708ab3
commit
e318f20a0c
@ -34,9 +34,9 @@ Filename: `src/main.rs`
|
||||
|
||||
```rust
|
||||
extern crate actix_web;
|
||||
use actix_web::{HttpRequest, Responder, App, server};
|
||||
use actix_web::{HttpRequest, App, server};
|
||||
|
||||
fn index(req: _HttpRequest) -> Responder {
|
||||
fn index(_req: HttpRequest) -> &'static str {
|
||||
"Hello world!"
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user