mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
docs: fix middleware docs warning
This commit is contained in:
parent
2e63ff5928
commit
18e02b83d5
@ -33,13 +33,13 @@
|
|||||||
//!
|
//!
|
||||||
//! # fn main() {
|
//! # fn main() {
|
||||||
//! # // These aren't snake_case, because they are supposed to be unit structs.
|
//! # // These aren't snake_case, because they are supposed to be unit structs.
|
||||||
//! # let MiddlewareA = middleware::Compress::default();
|
//! # type MiddlewareA = middleware::Compress;
|
||||||
//! # let MiddlewareB = middleware::Compress::default();
|
//! # type MiddlewareB = middleware::Compress;
|
||||||
//! # let MiddlewareC = middleware::Compress::default();
|
//! # type MiddlewareC = middleware::Compress;
|
||||||
//! let app = App::new()
|
//! let app = App::new()
|
||||||
//! .wrap(MiddlewareA)
|
//! .wrap(MiddlewareA::default())
|
||||||
//! .wrap(MiddlewareB)
|
//! .wrap(MiddlewareB::default())
|
||||||
//! .wrap(MiddlewareC)
|
//! .wrap(MiddlewareC::default())
|
||||||
//! .service(service);
|
//! .service(service);
|
||||||
//! # }
|
//! # }
|
||||||
//! ```
|
//! ```
|
||||||
|
Loading…
Reference in New Issue
Block a user