1
0
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:
Rob Ede 2024-05-18 20:35:12 +01:00
parent 2e63ff5928
commit 18e02b83d5
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -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);
//! # } //! # }
//! ``` //! ```