docs(net): fix gramar
Some checks failed
Rust / build (map[name:stable]) (push) Successful in 2m12s
Rust / build (map[name:nightly]) (push) Successful in 4m15s
Release Please / Release-plz (push) Failing after 1m7s

This commit is contained in:
Paul Campbell 2024-11-12 07:13:00 +00:00
parent 415c37a700
commit 8b6bfefbf2

View file

@ -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>,