Fix invalid JSON data in a guide example.

This commit is contained in:
arctic-alpaca 2020-06-27 09:15:24 +02:00 committed by Jeb Rosen
parent 86d0bdddb2
commit 1e623c8aaa
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ use rocket::response::content;
#[get("/")]
fn json() -> content::Json<&'static str> {
content::Json("{ 'hi': 'world' }")
content::Json("{ \"hi\": \"world\" }")
}
```