diff --git a/src/middleware/session.rs b/src/middleware/session.rs index c1828e68..7051a034 100644 --- a/src/middleware/session.rs +++ b/src/middleware/session.rs @@ -121,9 +121,8 @@ unsafe impl Sync for SessionImplBox {} /// fn main() { /// let app = App::new().middleware( /// SessionStorage::new( // <- create session middleware -/// CookieSessionBackend::build(&[0; 32]) // <- create cookie session backend -/// .secure(false) -/// .finish()) +/// CookieSessionBackend::new(&[0; 32]) // <- create cookie session backend +/// .secure(false)) /// ); /// } /// ```