update documentation that EventLoopIterator is no longer optional (#888)

Motivation:

docs were old

Modifications:

update the EventLoopIterator examples
Result:

better docs
This commit is contained in:
Johannes Weiss authored and GitHub committed 2019-03-08 15:21:07 +00:00
1 parent 3fcc5f9f08
commit e4774cc6e3
1 file changed
+1 -1
+1 -1
View File
@@ -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
/// }
///