Update README.md example.

This commit is contained in:
Sergio Benitez 2016-09-04 04:10:35 -07:00
parent 5722e9453e
commit a127a06480
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ application:
extern crate rocket;
use rocket::Rocket;
#[GET(path = "/<name>/<age>")]
#[get("/<name>/<age>")]
fn hello(name: &str, age: u8) -> String {
format!("Hello, {} year old named {}!", age, name)
}