From dcf7e5c702d13417fb6721d03eafec91cbf9dff7 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Wed, 24 Jun 2020 08:13:30 +0100 Subject: [PATCH] Fix invalid code in `HTTPClient.swift` doc comment (#271) `HTTPClient(eventLoopGroupProvider = .createNew)` is not a valid Swift expression. --- Sources/AsyncHTTPClient/HTTPClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/HTTPClient.swift b/Sources/AsyncHTTPClient/HTTPClient.swift index 5fee5e0..6a5f192 100644 --- a/Sources/AsyncHTTPClient/HTTPClient.swift +++ b/Sources/AsyncHTTPClient/HTTPClient.swift @@ -42,7 +42,7 @@ let globalRequestID = NIOAtomic.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):