docs(examples): Fix typo in client_json example comment

Fixes typo on comment about error types in client_json example.
This commit is contained in:
Alexis Mousset
2018-08-26 20:50:07 +02:00
committed by Sean McArthur
parent abe8ddd637
commit e3dc6c5511

View File

@@ -64,7 +64,7 @@ struct User {
name: String,
}
// Define a type so we can return multile types of errors
// Define a type so we can return multiple types of errors
enum FetchError {
Http(hyper::Error),
Json(serde_json::Error),
@@ -80,4 +80,4 @@ impl From<serde_json::Error> for FetchError {
fn from(err: serde_json::Error) -> FetchError {
FetchError::Json(err)
}
}
}