Remove unnecessary 'RawStr.as_str()' in guide.

Closes #1454.
This commit is contained in:
Compro Prasad 2020-10-22 21:15:29 +05:30 committed by Sergio Benitez
parent 55b651bd70
commit de1cffba46

View File

@ -81,7 +81,7 @@ use rocket::http::RawStr;
#[get("/hello/<name>")]
fn hello(name: &RawStr) -> String {
format!("Hello, {}!", name.as_str())
format!("Hello, {}!", name)
}
```