Fix invalid code in HTTPClient.swift doc comment (#271)

`HTTPClient(eventLoopGroupProvider = .createNew)` is not a valid Swift expression.
This commit is contained in:
Max Desiatov
2020-06-24 08:13:30 +01:00
committed by GitHub
parent 61a80a2d34
commit dcf7e5c702
+1 -1
View File
@@ -42,7 +42,7 @@ let globalRequestID = NIOAtomic<Int>.makeAtomic(value: 0)
/// Example:
///
/// ```swift
/// let client = HTTPClient(eventLoopGroupProvider = .createNew)
/// let client = HTTPClient(eventLoopGroupProvider: .createNew)
/// client.get(url: "https://swift.org", deadline: .now() + .seconds(1)).whenComplete { result in
/// switch result {
/// case .failure(let error):