Skip to content

Commit 1e623c8

Browse files
arctic-alpacajebrosen
authored andcommitted
Fix invalid JSON data in a guide example.
1 parent 86d0bdd commit 1e623c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/guide/5-responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use rocket::response::content;
5959

6060
#[get("/")]
6161
fn json() -> content::Json<&'static str> {
62-
content::Json("{ 'hi': 'world' }")
62+
content::Json("{ \"hi\": \"world\" }")
6363
}
6464
```
6565

0 commit comments

Comments
 (0)