From 7588ceaf353af0f257d4d832bace4600edac704e Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 29 Apr 2018 20:46:41 +0300 Subject: doc: add more missing backticks Also, fix some other nits in passing (formatting, punctuation, typos, redundancy, obsoleteness). PR-URL: https://github.com/nodejs/node/pull/20438 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig --- doc/api/net.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'doc/api/net.md') diff --git a/doc/api/net.md b/doc/api/net.md index 5b9d837c05..21d14fc706 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -151,7 +151,7 @@ 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 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 +that event, it will be called with an `Error` as its only argument if the server was not open when it was closed. ### server.connections @@ -183,7 +183,7 @@ Callback should take two arguments `err` and `count`. ### server.listen() Start a server listening for connections. A `net.Server` can be a TCP or -a [IPC][] server depending on what it listens to. +an [IPC][] server depending on what it listens to. Possible signatures: @@ -295,7 +295,7 @@ added: v0.1.90 * `callback` {Function} Common parameter of [`server.listen()`][] functions. * Returns: {net.Server} -Start a [IPC][] server listening for connections on the given `path`. +Start an [IPC][] server listening for connections on the given `path`. #### server.listen([port[, host[, backlog]]][, callback]) -A Boolean indicating whether or not the server is listening for -connections. +* {boolean} Indicates whether or not the server is listening for connections. ### server.maxConnections