From 4f8129283037a95e9fdde10fbe239f20a6af5d7e Mon Sep 17 00:00:00 2001 From: Riley Watkins Date: Mon, 24 Dec 2018 09:42:40 -0800 Subject: [PATCH] Fix typo in responses guide: '#[responder]' -> '#[response]'. --- site/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 index 97157b74..7410468a 100644 --- 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.