Skip to content

Commit eb4ef13

Browse files
Apply suggestions from code review
Co-authored-by: Jeremiah Senkpiel <[email protected]>
1 parent 60a5cd9 commit eb4ef13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cache/cache_control/cache_control.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub struct CacheControl {
3434
}
3535

3636
impl CacheControl {
37-
/// Create a new instance of `ServerTiming`.
37+
/// Create a new instance of `CacheControl`.
3838
pub fn new() -> Self {
3939
Self { entries: vec![] }
4040
}
@@ -120,7 +120,7 @@ impl<'a> IntoIterator for &'a CacheControl {
120120
type Item = &'a CacheDirective;
121121
type IntoIter = Iter<'a>;
122122

123-
// #[inline]serv
123+
#[inline]
124124
fn into_iter(self) -> Self::IntoIter {
125125
self.iter()
126126
}

src/cache/cache_control/cache_directive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ pub enum CacheDirective {
2121
NoCache,
2222
/// The response may not be cached.
2323
NoStore,
24-
/// An intermediate cache or proxy cannot edit the response body,
24+
/// An intermediate cache or proxy should not edit the response body,
2525
/// Content-Encoding, Content-Range, or Content-Type.
2626
NoTransform,
2727
/// Do not use the network for a response.
2828
OnlyIfCached,
2929
/// The response may be stored only by a browser's cache, even if the
30-
/// response is normally non-cacheable
30+
/// response is normally non-cacheable.
3131
Private,
3232
/// Like must-revalidate, but only for shared caches (e.g., proxies).
3333
ProxyRevalidate,

0 commit comments

Comments
 (0)