From e4774cc6e39555540426fa9378e2c207c8ef5258 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Fri, 8 Mar 2019 15:21:07 +0000 Subject: [PATCH] update documentation that EventLoopIterator is no longer optional (#888) Motivation: docs were old Modifications: update the EventLoopIterator examples Result: better 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 6f72bf797..4f2281b56 100644 --- a/Sources/NIO/EventLoop.swift +++ b/Sources/NIO/EventLoop.swift @@ -173,7 +173,7 @@ public final class RepeatedTask { /// Usually returned by an `EventLoopGroup`'s `makeIterator()` method. /// /// let group = MultiThreadedEventLoopGroup(numberOfThreads: 1) -/// group.makeIterator()?.forEach { loop in +/// group.makeIterator().forEach { loop in /// // Do something with each loop /// } ///