From ad1df2154f7fa07e469aa492f36173b14a9b2314 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Fri, 17 Jul 2015 21:03:23 -0700 Subject: [PATCH] fixup --- doc/api/net.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 035df2cc2c4dfb..b68511e47ce590 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -228,9 +228,10 @@ shown below. Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally -closed when all connections are ended and the server emits a `'close'` -event. The last parameter `callback` will be added as an listener for the -['close'][] event. +closed when all connections are ended and the server emits a ['close'][] event. +The optional `callback` will be called once the `'close'` event occurs. Unlike +that event, it will be called with an Error as its only argument if the server +was not open when it was closed. ### server.address()