Skip to content

Commit

Permalink
Fix typo in responses guide: '#[responder]' -> '#[response]'.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwatkins authored and jebrosen committed Dec 26, 2018
1 parent aba3ad3 commit 4f81292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/guide/5-responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4f81292

Please sign in to comment.