mirror of
https://github.com/actix/actix-web.git
synced 2024-11-26 03:21:08 +00:00
docs: fix middleware docs warning
This commit is contained in:
parent
2e63ff5928
commit
18e02b83d5
1 changed files with 6 additions and 6 deletions
|
@ -33,13 +33,13 @@
|
|||
//!
|
||||
//! # fn main() {
|
||||
//! # // These aren't snake_case, because they are supposed to be unit structs.
|
||||
//! # let MiddlewareA = middleware::Compress::default();
|
||||
//! # let MiddlewareB = middleware::Compress::default();
|
||||
//! # let MiddlewareC = middleware::Compress::default();
|
||||
//! # type MiddlewareA = middleware::Compress;
|
||||
//! # type MiddlewareB = middleware::Compress;
|
||||
//! # type MiddlewareC = middleware::Compress;
|
||||
//! let app = App::new()
|
||||
//! .wrap(MiddlewareA)
|
||||
//! .wrap(MiddlewareB)
|
||||
//! .wrap(MiddlewareC)
|
||||
//! .wrap(MiddlewareA::default())
|
||||
//! .wrap(MiddlewareB::default())
|
||||
//! .wrap(MiddlewareC::default())
|
||||
//! .service(service);
|
||||
//! # }
|
||||
//! ```
|
||||
|
|
Loading…
Reference in a new issue