Accidentally broke optional_result example. Now fixed.

This commit is contained in:
Sergio Benitez 2016-03-30 14:04:00 -07:00
parent d477c18062
commit 6ba67ae79a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {