File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pub struct CacheControl {
3434}
3535
3636impl 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 }
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments