Skip to content

Commit cad0cb3

Browse files
committed
doc: a listener, not "an" listener
1 parent ad1df21 commit cad0cb3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/net.markdown

+6-6
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The options are passed to both the ['net.Socket'](#net_class_net_socket)
6767
constructor and the ['socket.connect'](#net_socket_connect_options_connectlistener)
6868
method.
6969

70-
The `connectListener` parameter will be added as an listener for the
70+
The `connectListener` parameter will be added as a listener for the
7171
['connect'][] event.
7272

7373
Here is an example of a client of the previously described echo server:
@@ -100,7 +100,7 @@ supplied `port` and `host`.
100100

101101
If `host` is omitted, `'localhost'` will be assumed.
102102

103-
The `connectListener` parameter will be added as an listener for the
103+
The `connectListener` parameter will be added as a listener for the
104104
['connect'][] event.
105105

106106
## net.connect(path[, connectListener])
@@ -110,7 +110,7 @@ A factory function, which returns a new unix
110110
['net.Socket'](#net_class_net_socket) and automatically connects to the
111111
supplied `path`.
112112

113-
The `connectListener` parameter will be added as an listener for the
113+
The `connectListener` parameter will be added as a listener for the
114114
['connect'][] event.
115115

116116
## Class: net.Server
@@ -131,7 +131,7 @@ parameter is 511 (not 512).
131131

132132
This function is asynchronous. When the server has been bound,
133133
['listening'][] event will be emitted. The last parameter `callback`
134-
will be added as an listener for the ['listening'][] event.
134+
will be added as a listener for the ['listening'][] event.
135135

136136
One issue some users run into is getting `EADDRINUSE` errors. This means that
137137
another server is already running on the requested port. One way of handling this
@@ -193,7 +193,7 @@ Listening on a file descriptor is not supported on Windows.
193193

194194
This function is asynchronous. When the server has been bound,
195195
['listening'][] event will be emitted.
196-
The last parameter `callback` will be added as an listener for the
196+
The last parameter `callback` will be added as a listener for the
197197
['listening'][] event.
198198

199199
### server.listen(options[, callback])
@@ -368,7 +368,7 @@ This function is asynchronous. When the ['connect'][] event is emitted the
368368
socket is established. If there is a problem connecting, the `'connect'` event
369369
will not be emitted, the `'error'` event will be emitted with the exception.
370370

371-
The `connectListener` parameter will be added as an listener for the
371+
The `connectListener` parameter will be added as a listener for the
372372
['connect'][] event.
373373

374374
### socket.connect(port[, host][, connectListener])

0 commit comments

Comments
 (0)