From bc6618e300433ed7c9ade6a891d4c4982e4e3602 Mon Sep 17 00:00:00 2001 From: Andrew Edwards Date: Thu, 24 May 2018 15:02:32 -0400 Subject: [PATCH] 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. --- Sources/NIO/EventLoop.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NIO/EventLoop.swift b/Sources/NIO/EventLoop.swift index 71f2cb43e..6b554f287 100644 --- a/Sources/NIO/EventLoop.swift +++ b/Sources/NIO/EventLoop.swift @@ -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(result: T) -> EventLoopFuture { return EventLoopFuture(eventLoop: self, result: result, file: "n/a", line: 0) }