docs(lib): Fix some typos
This commit is contained in:
committed by
Sean McArthur
parent
ae34a86cc3
commit
51223efb8a
@@ -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`.
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user