mirror of https://github.com/rwf2/Rocket.git
Update README.md example.
This commit is contained in:
parent
5722e9453e
commit
a127a06480
|
@ -13,7 +13,7 @@ application:
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
use rocket::Rocket;
|
use rocket::Rocket;
|
||||||
|
|
||||||
#[GET(path = "/<name>/<age>")]
|
#[get("/<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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue