Skip to content

Commit

Permalink
Assign channel variable in docs (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke authored and Lukasa committed Nov 27, 2018
1 parent ac9e5d0 commit 29398d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NIO/Bootstrap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29398d5

Please # to comment.