From 29398d5f26019a1edb9f91c5b39d59b42fff610c Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Tue, 27 Nov 2018 09:09:06 +0100 Subject: [PATCH] Assign channel variable in docs (#662) --- Sources/NIO/Bootstrap.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NIO/Bootstrap.swift b/Sources/NIO/Bootstrap.swift index f52d3c445c..e75ac7d40c 100644 --- a/Sources/NIO/Bootstrap.swift +++ b/Sources/NIO/Bootstrap.swift @@ -41,7 +41,7 @@ /// defer { /// try! group.syncShutdownGracefully() /// } -/// try! bootstrap.bind(host: host, port: port).wait() +/// let channel = try! bootstrap.bind(host: host, port: port).wait() /// /* the server will now be accepting connections */ /// /// try! channel.closeFuture.wait() // wait forever as we never close the Channel