mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02: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:
@ -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!"
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user