Skip to content

Commit

Permalink
Fix method documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
allenap committed Jun 16, 2024
1 parent 449f251 commit 510ae80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/cache_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl CacheControl {
self.flags.contains(Flags::IMMUTABLE)
}

/// Check if the `must_understand` directive is set.
/// Check if the `must_revalidate` directive is set.
pub fn must_revalidate(&self) -> bool {
self.flags.contains(Flags::MUST_REVALIDATE)
}
Expand Down Expand Up @@ -198,7 +198,7 @@ impl CacheControl {
self
}

/// Set the `must_understand` directive.
/// Set the `must_revalidate` directive.
pub fn with_must_revalidate(mut self) -> Self {
self.flags.insert(Flags::MUST_REVALIDATE);
self
Expand Down

0 comments on commit 510ae80

Please sign in to comment.