From 813d1d6e6653308cf97c88b78fa6395b5981622a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 18 Apr 2018 20:41:03 -0700 Subject: [PATCH] doc strings layout --- src/middleware/logger.rs | 1 + src/middleware/session.rs | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/middleware/logger.rs b/src/middleware/logger.rs index d9d96a1c..28964718 100644 --- a/src/middleware/logger.rs +++ b/src/middleware/logger.rs @@ -14,6 +14,7 @@ use httpresponse::HttpResponse; use middleware::{Finished, Middleware, Started}; /// `Middleware` for logging request and response info to the terminal. +/// /// `Logger` middleware uses standard log crate to log information. You should /// enable logger for `actix_web` package to see access log. /// ([`env_logger`](https://docs.rs/env_logger/*/env_logger/) or similar) diff --git a/src/middleware/session.rs b/src/middleware/session.rs index 6c041b4b..c71ed5a6 100644 --- a/src/middleware/session.rs +++ b/src/middleware/session.rs @@ -52,11 +52,11 @@ //! fn main() { //! let sys = actix::System::new("basic-example"); //! server::new( -//! || App::new() -//! .middleware(SessionStorage::new( // <- create session middleware -//! CookieSessionBackend::signed(&[0; 32]) // <- create signed cookie session backend -//! .secure(false) -//! ))) +//! || App::new().middleware( +//! SessionStorage::new( // <- create session middleware +//! CookieSessionBackend::signed(&[0; 32]) // <- create signed cookie session backend +//! .secure(false) +//! ))) //! .bind("127.0.0.1:59880").unwrap() //! .start(); //! # actix::Arbiter::system().do_send(actix::msgs::SystemExit(0));