Skip to content

Commit

Permalink
Fix PrivateCookieJar documentation example comments (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaClaas authored Nov 28, 2024
1 parent c7aa645 commit 2eaed0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axum-extra/src/extract/cookie/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ use std::{convert::Infallible, fmt, marker::PhantomData};
/// // our application state
/// #[derive(Clone)]
/// struct AppState {
/// // that holds the key used to sign cookies
/// // that holds the key used to encrypt cookies
/// key: Key,
/// }
///
/// // this impl tells `SignedCookieJar` how to access the key from our state
/// // this impl tells `PrivateCookieJar` how to access the key from our state
/// impl FromRef<AppState> for Key {
/// fn from_ref(state: &AppState) -> Self {
/// state.key.clone()
Expand Down

0 comments on commit 2eaed0b

Please sign in to comment.