Skip to content

Commit b6de43d

Browse files
authored
Merge pull request swiftlang#5087 from jiang7369/patch-1
Correct spelling mistake: manDocumentURL -> mainDocumentURL
2 parents 7b5cd12 + b70557a commit b6de43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationNetworking/HTTPCookieStorage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ open class HTTPCookieStorage: NSObject, @unchecked Sendable {
311311
if mainDocumentURL != nil && cookieAcceptPolicy == .onlyFromMainDocumentDomain {
312312
guard let mainDocumentHost = mainDocumentURL?.host?.lowercased() else { return }
313313

314-
//the url.host must be a suffix of manDocumentURL.host, this is based on Darwin's behaviour
314+
//the url.host must be a suffix of mainDocumentURL.host, this is based on Darwin's behaviour
315315
guard mainDocumentHost.hasSuffix(urlHost) else { return }
316316
}
317317

0 commit comments

Comments
 (0)