docs(lib): Fix some typos

This commit is contained in:
Jonas Platte
2018-07-07 22:30:02 +02:00
committed by Sean McArthur
parent ae34a86cc3
commit 51223efb8a
6 changed files with 11 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ pub trait NewService {
/// The future returned from `new_service` of a `Service`.
type Future: Future<Item=Self::Service, Error=Self::InitError>;
/// The error type that can be returned when creating a new `Service.
/// The error type that can be returned when creating a new `Service`.
type InitError: Into<Box<StdError + Send + Sync>>;
/// Create a new `Service`.

View File

@@ -16,7 +16,7 @@ pub trait Service {
/// The `Payload` body of the `http::Response`.
type ResBody: Payload;
/// The error type that can occur within this `Service.
/// The error type that can occur within this `Service`.
///
/// Note: Returning an `Error` to a hyper server will cause the connection
/// to be abruptly aborted. In most cases, it is better to return a `Response`