Skip to content

Commit dcf7e5c

Browse files
authoredJun 24, 2020
Fix invalid code in HTTPClient.swift doc comment (#271)
`HTTPClient(eventLoopGroupProvider = .createNew)` is not a valid Swift expression.
1 parent 61a80a2 commit dcf7e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let globalRequestID = NIOAtomic<Int>.makeAtomic(value: 0)
4242
/// Example:
4343
///
4444
/// ```swift
45-
/// let client = HTTPClient(eventLoopGroupProvider = .createNew)
45+
/// let client = HTTPClient(eventLoopGroupProvider: .createNew)
4646
/// client.get(url: "https://swift.org", deadline: .now() + .seconds(1)).whenComplete { result in
4747
/// switch result {
4848
/// case .failure(let error):

0 commit comments

Comments
 (0)