diff --git a/actix-session/src/session.rs b/actix-session/src/session.rs index f1bb2ff4e..ef207271a 100644 --- a/actix-session/src/session.rs +++ b/actix-session/src/session.rs @@ -32,8 +32,9 @@ use serde::{de::DeserializeOwned, Serialize}; /// } else { /// session.insert("counter", 1)?; /// } -/// // Or use the shorthand -/// session.update_or("counter", |count: i32| count + 1, 1); +/// +/// // or use the shorthand +/// session.update_or("counter", 1, |count: i32| count + 1); /// /// Ok("Welcome!") /// } diff --git a/justfile b/justfile index c4f538679..a9064abee 100644 --- a/justfile +++ b/justfile @@ -43,6 +43,7 @@ update-readmes: [group("test")] test: cargo {{ toolchain }} nextest run --workspace --all-features + cargo {{ toolchain }} test --doc --workspace --all-features # Test workspace code and docs. [group("test")]