Updated the code comment to explain the correct type of Future result.

Motivation:

This is done because when using Xcode and option + Click on a function you get a help overview inline to see more information and the messaging was incorrect. This helps developers in the future who want to rely on docs via Xcode.

Modification:

Correct the docs

Result:

More correct docs.
This commit is contained in:
Andrew Edwards authored and Norman Maurer committed 2018-05-24 21:02:32 +02:00
1 parent c566b64455
commit bc6618e300
1 file changed
+1 -1
+1 -1
View File
@@ -210,7 +210,7 @@ extension EventLoop {
///
/// - parameters:
/// - result: the value that is used by the `EventLoopFuture`.
/// - returns: a failed `EventLoopFuture`.
/// - returns: a succeeded `EventLoopFuture`.
public func newSucceededFuture<T>(result: T) -> EventLoopFuture<T> {
return EventLoopFuture<T>(eventLoop: self, result: result, file: "n/a", line: 0)
}