From ba6caad7c8ec9ae5e944a65778a36da8ea58ae0f Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 3 Apr 2016 04:28:09 -0700 Subject: [PATCH] A better README. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bfcfbe09..f5e4d53e 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ does, the following will be the canonical "Hello, world!" example: extern crate rocket; use rocket::Rocket; -#[route(GET, path = "/hello/")] -fn hello(name: &'static str) -> String { - format!("Hello, {}!", name) +#[route(GET, path = "/hello//")] +fn hello(name: &str, age: i8) -> String { + format!("Hello, {} year old named {}!", age, name) } fn main() {