mirror of
https://github.com/actix/actix-website
synced 2025-02-17 10:13:31 +01:00
Merge pull request #3 from IslandUsurper/patch-1
Make Getting Started example compile
This commit is contained in:
commit
3cf6586f18
@ -34,9 +34,9 @@ Filename: `src/main.rs`
|
|||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate actix_web;
|
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!"
|
"Hello world!"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user