mirror of https://github.com/rwf2/Rocket.git
Fix invalid JSON data in a guide example.
This commit is contained in:
parent
86d0bdddb2
commit
1e623c8aaa
|
@ -59,7 +59,7 @@ use rocket::response::content;
|
|||
|
||||
#[get("/")]
|
||||
fn json() -> content::Json<&'static str> {
|
||||
content::Json("{ 'hi': 'world' }")
|
||||
content::Json("{ \"hi\": \"world\" }")
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue