mirror of https://github.com/rwf2/Rocket.git
Accidentally broke optional_result example. Now fixed.
This commit is contained in:
parent
d477c18062
commit
6ba67ae79a
|
@ -5,7 +5,7 @@ extern crate rocket;
|
|||
use rocket::Rocket;
|
||||
|
||||
#[route(GET, path = "/users/<name>")]
|
||||
fn user(name: &str, other: i8) -> Option<&'static str> {
|
||||
fn user(name: &str) -> Option<&'static str> {
|
||||
if name == "Sergio" {
|
||||
Some("Hello, Sergio!")
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue