Skip to content

Commit

Permalink
Fix doc typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Oct 9, 2023
1 parent d68d011 commit e2d8dde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/jar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ impl CookieJar {
/// prefixes the name of cookies with `prefix`. Any retrievals from the
/// child jar will be made from the parent jar.
///
/// **Note:** Cookie prefixes are specified in an [HTTP draft]! Their
/// meaning and definition are subject to change.
/// **Note:** Cookie prefixes are specified in an HTTP draft! Their meaning
/// and definition are subject to change.
///
/// # Example
///
Expand Down Expand Up @@ -556,8 +556,8 @@ impl CookieJar {
/// Any modifications to the child jar will be reflected on the parent jar,
/// and any retrievals from the child jar will be made from the parent jar.
///
/// **Note:** Cookie prefixes are specified in an [HTTP draft]! Their
/// meaning and definition are subject to change.
/// **Note:** Cookie prefixes are specified in an HTTP draft! Their meaning
/// and definition are subject to change.
///
/// # Example
///
Expand Down
10 changes: 5 additions & 5 deletions src/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub struct Host;
///
/// See [`Prefix`] and [`PrefixedJar`] for usage details.
///
/// [`"__Prefix-"`]:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-the-__prefix-prefix
/// [`"__Secure-"`]:
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-the-__secure-prefix
pub struct Secure;

/// Trait identifying [HTTP RFC6265 draft] cookie prefixes.
Expand Down Expand Up @@ -67,7 +67,7 @@ pub trait Prefix: private::Sealed {
#[allow(non_upper_case_globals)]
const Secure: Secure = Secure;

/// Modify `cookie` so it confirms with the requirements of `self`.
/// Modify `cookie` so it conforms to the requirements of `self`.
///
/// See [`Host::conform()`] and [`Secure::conform()`] for specifics.
//
Expand Down Expand Up @@ -244,7 +244,7 @@ impl Prefix for Host {
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-the-__host-prefix
const PREFIX: &'static str = "__Host-";

/// Modify `cookie` so it conforms with the prefix requirements.
/// Modify `cookie` so it conforms to the prefix's requirements.
///
/// **Note: this method is called automatically by [`PrefixedJar`]. It _does
/// not need to_ and _should not_ be called manually under normal
Expand Down Expand Up @@ -307,7 +307,7 @@ impl Prefix for Secure {
/// https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#name-the-__secure-prefix
const PREFIX: &'static str = "__Secure-";

/// Modify `cookie` so it conforms with the prefix requirements.
/// Modify `cookie` so it conforms to the prefix's requirements.
///
/// **Note: this method is called automatically by [`PrefixedJar`]. It _does
/// not need to_ and _should not_ be called manually under normal
Expand Down

0 comments on commit e2d8dde

Please sign in to comment.