Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 4f8129283037a95e9fdde10fbe239f20a6af5d7e
parent aba3ad327b862ac05c84a8d86b13566409225c3d
Author: Riley Watkins <riley@rileywatkins.com>
Date:   Mon, 24 Dec 2018 09:42:40 -0800

Fix typo in responses guide: '#[responder]' -> '#[response]'.

Diffstat:
Msite/guide/5-responses.md | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/guide/5-responses.md b/site/guide/5-responses.md @@ -136,7 +136,7 @@ For the example above, Rocket generates a `Responder` implementation that: Note that the _first_ field is used as the inner responder while all remaining fields (unless ignored with `#[response(ignore)]`) are added as headers to the -response. The optional `#[responder]` attribute can be used to customize the +response. The optional `#[response]` attribute can be used to customize the status and content-type of the response. Because `ContentType` and `Status` are themselves headers, you can also dynamically set the content-type and status by simply including fields of these types.