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

This commit is contained in:
Riley Watkins 2018-12-24 09:42:40 -08:00 committed by jeb
parent aba3ad327b
commit 4f81292830
1 changed files with 1 additions and 1 deletions

View File

@ -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.