A better README.

This commit is contained in:
Sergio Benitez 2016-04-03 04:28:09 -07:00
parent 293159904f
commit ba6caad7c8
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ does, the following will be the canonical "Hello, world!" example:
extern crate rocket;
use rocket::Rocket;
#[route(GET, path = "/hello/<name>")]
fn hello(name: &'static str) -> String {
format!("Hello, {}!", name)
#[route(GET, path = "/hello/<name>/<age>")]
fn hello(name: &str, age: i8) -> String {
format!("Hello, {} year old named {}!", age, name)
}
fn main() {