1
0
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:
Nikolay Kim
2018-07-21 05:40:42 -07:00
parent 5cd8d2edc8
commit 4a41b92cc7
14 changed files with 62 additions and 69 deletions

View File

@ -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)
}