Skip to content

Commit 1757359

Browse files
Fixing error in documentation of HTTPHeaders accept variable (vapor#3375)
Co-authored-by: Tim Condon <[email protected]>
1 parent 3869a55 commit 1757359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Vapor/HTTP/Headers/HTTPHeaders.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ extension HTTPHeaders {
2121
///
2222
/// You can access all `MediaType`s in this collection to check membership.
2323
///
24-
/// httpReq.accept.mediaTypes.contains(.html)
24+
/// httpReq.headers.accept.mediaTypes.contains(.html)
2525
///
2626
/// Or you can compare preferences for two `MediaType`s.
2727
///
28-
/// let pref = httpReq.accept.comparePreference(for: .json, to: .html)
28+
/// let pref = httpReq.headers.accept.comparePreference(for: .json, to: .html)
2929
///
3030
public var accept: [HTTPMediaTypePreference] {
3131
self.parseDirectives(name: .accept).compactMap {

0 commit comments

Comments
 (0)