docs(net): fix gramar
This commit is contained in:
parent
415c37a700
commit
8b6bfefbf2
1 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ impl<'net> OnRequest<'net> {
|
|||
///
|
||||
/// The response will have an empty HTTP Body.
|
||||
///
|
||||
/// Each request and response can only be matched once each.
|
||||
/// Each request and response pair can only be matched once each.
|
||||
pub fn respond(self, response: impl Into<http::response::Builder>) -> Result<()> {
|
||||
match self {
|
||||
OnRequest::Valid {
|
||||
|
@ -329,7 +329,7 @@ impl<'net> OnRequest<'net> {
|
|||
|
||||
/// Constructs the response to be returned when a request matched the criteria.
|
||||
///
|
||||
/// Each request and response can only be matched once each.
|
||||
/// Each request and response pair can only be matched once each.
|
||||
pub fn respond_with_body<T>(
|
||||
self,
|
||||
body_result: std::result::Result<http::Response<T>, http::Error>,
|
||||
|
|
Loading…
Reference in a new issue