mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-21 16:12:18 +00:00
parent
55b651bd70
commit
de1cffba46
@ -81,7 +81,7 @@ use rocket::http::RawStr;
|
|||||||
|
|
||||||
#[get("/hello/<name>")]
|
#[get("/hello/<name>")]
|
||||||
fn hello(name: &RawStr) -> String {
|
fn hello(name: &RawStr) -> String {
|
||||||
format!("Hello, {}!", name.as_str())
|
format!("Hello, {}!", name)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user