mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
Fix invalid code in HTTPClient.swift doc comment (#271)
`HTTPClient(eventLoopGroupProvider = .createNew)` is not a valid Swift expression.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user