1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01:00

grammar fixes (#796)

This commit is contained in:
Darin 2019-04-24 16:21:42 -04:00 committed by Nikolay Kim
parent 5426413cb6
commit 7300002226

View File

@ -23,7 +23,7 @@ pub trait Responder {
/// Convert itself to `AsyncResult` or `Error`. /// Convert itself to `AsyncResult` or `Error`.
fn respond_to(self, req: &HttpRequest) -> Self::Future; fn respond_to(self, req: &HttpRequest) -> Self::Future;
/// Override a status code for a responder. /// Override a status code for a Responder.
/// ///
/// ```rust /// ```rust
/// use actix_web::{HttpRequest, Responder, http::StatusCode}; /// use actix_web::{HttpRequest, Responder, http::StatusCode};
@ -40,7 +40,7 @@ pub trait Responder {
CustomResponder::new(self).with_status(status) CustomResponder::new(self).with_status(status)
} }
/// Add extra header to the responder's response. /// Add header to the Responder's response.
/// ///
/// ```rust /// ```rust
/// use actix_web::{web, HttpRequest, Responder}; /// use actix_web::{web, HttpRequest, Responder};
@ -221,7 +221,7 @@ impl<T: Responder> CustomResponder<T> {
} }
} }
/// Override a status code for the responder's response. /// Override a status code for the Responder's response.
/// ///
/// ```rust /// ```rust
/// use actix_web::{HttpRequest, Responder, http::StatusCode}; /// use actix_web::{HttpRequest, Responder, http::StatusCode};
@ -236,7 +236,7 @@ impl<T: Responder> CustomResponder<T> {
self self
} }
/// Add extra header to the responder's response. /// Add header to the Responder's response.
/// ///
/// ```rust /// ```rust
/// use actix_web::{web, HttpRequest, Responder}; /// use actix_web::{web, HttpRequest, Responder};