Updated README to use method specific decorator.

This commit is contained in:
Sergio Benitez 2016-08-08 18:35:24 -07:00
parent eabb5169de
commit df9b71bee7
1 changed files with 1 additions and 1 deletions

View File

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