mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02:00
update user guide
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
{{ highlight `extern crate actix_web;
|
||||
use actix_web::{server, App, HttpRequest, Responder};
|
||||
|
||||
fn greet(req: HttpRequest) -> impl Responder {
|
||||
fn greet(req: &HttpRequest) -> impl Responder {
|
||||
let to = req.match_info().get("name").unwrap_or("World");
|
||||
format!("Hello {}!", to)
|
||||
}
|
||||
|
Reference in New Issue
Block a user