Fix typos in JSON docs.

This commit is contained in:
Sergio Benitez 2017-02-09 00:16:13 -08:00
parent 1e1ff3bd23
commit a496d1dbc4
1 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ pub use serde_json::error::Error as SerdeError;
/// The JSON type: implements `FromData` and `Responder`, allowing you to easily /// The JSON type: implements `FromData` and `Responder`, allowing you to easily
/// consume and respond with JSON. /// consume and respond with JSON.
/// ///
/// If you're receiving JSON data, simple add a `data` parameter to your route /// If you're receiving JSON data, simply add a `data` parameter to your route
/// arguments and ensure the type o the parameter is a `JSON<T>`, where `T` is /// arguments and ensure the type of the parameter is a `JSON<T>`, where `T` is
/// some type you'd like to parse from JSON. `T` must implement `Deserialize` /// some type you'd like to parse from JSON. `T` must implement `Deserialize`
/// from [Serde](https://github.com/serde-rs/json). The data is parsed from the /// from [Serde](https://github.com/serde-rs/json). The data is parsed from the
/// HTTP request body. /// HTTP request body.
@ -31,8 +31,8 @@ pub use serde_json::error::Error as SerdeError;
/// ``` /// ```
/// You don't _need_ to use `format = "application/json"`, but it _may_ be what /// You don't _need_ to use `format = "application/json"`, but it _may_ be what
/// you want. Using `format = application/json` means that any request that /// you want. Using `format = application/json` means that any request that
/// doesn't specify "application/json" as its first `Content-Type:` header /// doesn't specify "application/json" as its `Content-Type` header value will
/// parameter will not be routed to this handler. /// not be routed to the handler.
/// ///
/// If you're responding with JSON data, return a `JSON<T>` type, where `T` /// If you're responding with JSON data, return a `JSON<T>` type, where `T`
/// implements `Serialize` from [Serde](https://github.com/serde-rs/json). The /// implements `Serialize` from [Serde](https://github.com/serde-rs/json). The