From 4a0fee4129d053e0730d4de07f17268befc37781 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 9 Dec 2018 00:19:04 -0800 Subject: [PATCH] Fix typo in requests guide: 'of' -> 'or'. --- site/guide/4-requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/guide/4-requests.md b/site/guide/4-requests.md index 5c610618..74b4d892 100644 --- a/site/guide/4-requests.md +++ b/site/guide/4-requests.md @@ -618,7 +618,7 @@ fn good(custom: Custom, cookies: Cookies) { .. } A route can specify the data format it is willing to accept or respond with by using the `format` route parameter. The value of the parameter is a string identifying an HTTP media type or a shorthand variant. For instance, for JSON -data, the string `application/json` of simply `json` can be used. +data, the string `application/json` or simply `json` can be used. When a route indicates a payload-supporting method (`PUT`, `POST`, `DELETE`, and `PATCH`), the `format` route parameter instructs Rocket to check against the