1
0
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:
Lyle Mantooth 2018-05-23 11:19:48 -04:00 committed by GitHub
parent 28b4708ab3
commit e318f20a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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