mirror of https://github.com/fafhrd91/actix-web
fix: correct "Implementors" to "Implementers" in docs (#4142)
Co-authored-by: maxtaran2010 <ocotifuzo727@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c6249cc00c
commit
0cbee68a78
|
|
@ -3,7 +3,7 @@ use crate::Path;
|
||||||
/// Abstraction over types that can provide a mutable [`Path`] for routing.
|
/// Abstraction over types that can provide a mutable [`Path`] for routing.
|
||||||
///
|
///
|
||||||
/// This trait is used by the router to extract the request path in a uniform way across different
|
/// This trait is used by the router to extract the request path in a uniform way across different
|
||||||
/// request types (e.g., Actix Web's `ServiceRequest`). Implementors return a mutable [`Path`]
|
/// request types (e.g., Actix Web's `ServiceRequest`). Implementers return a mutable [`Path`]
|
||||||
/// wrapper so routing can read and potentially normalize/parse the path without requiring the
|
/// wrapper so routing can read and potentially normalize/parse the path without requiring the
|
||||||
/// original request type.
|
/// original request type.
|
||||||
pub trait Resource {
|
pub trait Resource {
|
||||||
|
|
|
||||||
|
|
@ -422,7 +422,7 @@ async fn main() {
|
||||||
|
|
||||||
## Guards API
|
## Guards API
|
||||||
|
|
||||||
Implementors of routing guards will need to use the modified interface of the `Guard` trait. The API is more flexible than before. See [guard module docs](https://docs.rs/actix-web/4/actix_web/guard/struct.GuardContext.html) for more details.
|
Implementers of routing guards will need to use the modified interface of the `Guard` trait. The API is more flexible than before. See [guard module docs](https://docs.rs/actix-web/4/actix_web/guard/struct.GuardContext.html) for more details.
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
struct MethodGuard(HttpMethod);
|
struct MethodGuard(HttpMethod);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue