Rocket

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

commit 47485dbadd3adebb643b460b47e7dfce902717ff
parent 55459db7732b9a240826a5c120c650f87e3372ce
Author: Alfie John <alfie@alfie.wtf>
Date:   Thu,  9 Aug 2018 12:06:52 +1000

Fix a few grammar issues in guide.

Diffstat:
Msite/guide/fairings.md | 2+-
Msite/guide/responses.md | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/site/guide/fairings.md b/site/guide/fairings.md @@ -94,7 +94,7 @@ events is described below: A response callback is called when a response is ready to be sent to the client. A response callback can modify part or all of the response. As such, a response fairing can be used to provide a response when the greater - applications fails to by rewriting **404** responses as desired. As another + application fails by rewriting **404** responses as desired. As another example, response fairings can also be used to inject headers into all outgoing responses. diff --git a/site/guide/responses.md b/site/guide/responses.md @@ -48,7 +48,7 @@ fn new(id: usize) -> status::Accepted<String> { Similarly, the types in the [`content` module](https://api.rocket.rs/rocket/response/content/index.html) can be used to override the Content-Type of a response. For instance, to set the Content-Type -an `&'static str` to JSON, you can use the [`content::Json`] type as follows: +of `&'static str` to JSON, you can use the [`content::Json`] type as follows: ```rust use rocket::response::content; @@ -125,7 +125,7 @@ fn handler() -> &'static str { ### `Option` -`Option` is _wrapping_ responder: an `Option<T>` can only be returned when `T` +`Option` is a _wrapping_ responder: an `Option<T>` can only be returned when `T` implements `Responder`. If the `Option` is `Some`, the wrapped responder is used to respond to the client. Otherwise, a error of **404 - Not Found** is returned to the client.