Skip to content

Commit 5ccb429

Browse files
scopjasnell
authored andcommitted
doc, comments: Grammar and spelling fixes
Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs/node-v0.x-archive#25591
1 parent 16f5476 commit 5ccb429

9 files changed

+18
-18
lines changed

doc/api/buffer.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Creating a typed array from a `Buffer` works with the following caveats:
4343

4444
2. The buffer's memory is interpreted as an array, not a byte array. That is,
4545
`new Uint32Array(new Buffer([1,2,3,4]))` creates a 4-element `Uint32Array`
46-
with elements `[1,2,3,4]`, not an `Uint32Array` with a single element
46+
with elements `[1,2,3,4]`, not a `Uint32Array` with a single element
4747
`[0x1020304]` or `[0x4030201]`.
4848

4949
NOTE: Node.js v0.8 simply retained a reference to the buffer in `array.buffer`

doc/api/cluster.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ It is not emitted in the worker.
599599

600600
### Event: 'disconnect'
601601

602-
Similar to the `cluster.on('disconnect')` event, but specfic to this worker.
602+
Similar to the `cluster.on('disconnect')` event, but specific to this worker.
603603

604604
cluster.fork().on('disconnect', function() {
605605
// Worker has disconnected

doc/api/crypto.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Example (obtaining a shared secret):
529529

530530
## crypto.createECDH(curve_name)
531531

532-
Creates a Elliptic Curve (EC) Diffie-Hellman key exchange object using a
532+
Creates an Elliptic Curve (EC) Diffie-Hellman key exchange object using a
533533
predefined curve specified by `curve_name` string.
534534

535535
## Class: ECDH

doc/api/dns.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ See [supported `getaddrinfo` flags](#dns_supported_getaddrinfo_flags) below for
8181
more information on supported flags.
8282

8383
The callback has arguments `(err, address, family)`. The `address` argument
84-
is a string representation of a IP v4 or v6 address. The `family` argument
84+
is a string representation of an IP v4 or v6 address. The `family` argument
8585
is either the integer 4 or 6 and denotes the family of `address` (not
8686
necessarily the value initially passed to `lookup`).
8787

@@ -155,7 +155,7 @@ attribute (e.g. `[{'priority': 10, 'exchange': 'mx.example.com'},...]`).
155155
## dns.resolveTxt(hostname, callback)
156156

157157
The same as `dns.resolve()`, but only for text queries (`TXT` records).
158-
`addresses` is an 2-d array of the text records available for `hostname` (e.g.,
158+
`addresses` is a 2-d array of the text records available for `hostname` (e.g.,
159159
`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
160160
one record. Depending on the use case, the could be either joined together or
161161
treated separately.

doc/api/net.markdown

+7-7
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Common options are:
9090
a FIN packet when the other end of the socket sends a FIN packet.
9191
Defaults to `false`. See ['end'][] event for more information.
9292

93-
The `connectListener` parameter will be added as an listener for the
93+
The `connectListener` parameter will be added as a listener for the
9494
['connect'][] event.
9595

9696
Here is an example of a client of echo server as described previously:
@@ -119,7 +119,7 @@ changed to
119119

120120
Creates a TCP connection to `port` on `host`. If `host` is omitted,
121121
`'localhost'` will be assumed.
122-
The `connectListener` parameter will be added as an listener for the
122+
The `connectListener` parameter will be added as a listener for the
123123
['connect'][] event.
124124

125125
Is a factory method which returns a new ['net.Socket'](#net_class_net_socket).
@@ -128,7 +128,7 @@ Is a factory method which returns a new ['net.Socket'](#net_class_net_socket).
128128
## net.createConnection(path[, connectListener])
129129

130130
Creates unix socket connection to `path`.
131-
The `connectListener` parameter will be added as an listener for the
131+
The `connectListener` parameter will be added as a listener for the
132132
['connect'][] event.
133133

134134
A factory method which returns a new ['net.Socket'](#net_class_net_socket).
@@ -150,7 +150,7 @@ parameter is 511 (not 512).
150150

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

155155
One issue some users run into is getting `EADDRINUSE` errors. This means that
156156
another server is already running on the requested port. One way of handling this
@@ -178,7 +178,7 @@ Start a local socket server listening for connections on the given `path`.
178178

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

183183
On UNIX, the local domain is usually known as the UNIX domain. The path is a
184184
filesystem path name. It is subject to the same naming conventions and
@@ -212,7 +212,7 @@ Listening on a file descriptor is not supported on Windows.
212212

213213
This function is asynchronous. When the server has been bound,
214214
['listening'][] event will be emitted.
215-
the last parameter `callback` will be added as an listener for the
215+
the last parameter `callback` will be added as a listener for the
216216
['listening'][] event.
217217

218218
### server.listen(options[, callback])
@@ -374,7 +374,7 @@ This function is asynchronous. When the ['connect'][] event is emitted the
374374
socket is established. If there is a problem connecting, the `'connect'` event
375375
will not be emitted, the `'error'` event will be emitted with the exception.
376376

377-
The `connectListener` parameter will be added as an listener for the
377+
The `connectListener` parameter will be added as a listener for the
378378
['connect'][] event.
379379

380380

lib/_http_client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
371371
var req = socket._httpMessage;
372372

373373

374-
// propogate "domain" setting...
374+
// propagate "domain" setting...
375375
if (req.domain && !res.domain) {
376376
debug('setting "res.domain"');
377377
res.domain = req.domain;
@@ -474,7 +474,7 @@ function tickOnSocket(req, socket) {
474474
socket.parser = parser;
475475
socket._httpMessage = req;
476476

477-
// Setup "drain" propogation.
477+
// Setup "drain" propagation.
478478
httpSocketSetup(socket);
479479

480480
// Propagate headers limit from request object to parser

lib/url.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ Url.prototype.resolveObject = function(relative) {
600600
if (psychotic) {
601601
result.hostname = result.host = srcPath.shift();
602602
//occationaly the auth can get stuck only in host
603-
//this especialy happens in cases like
603+
//this especially happens in cases like
604604
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
605605
var authInHost = result.host && result.host.indexOf('@') > 0 ?
606606
result.host.split('@') : false;
@@ -682,7 +682,7 @@ Url.prototype.resolveObject = function(relative) {
682682
result.hostname = result.host = isAbsolute ? '' :
683683
srcPath.length ? srcPath.shift() : '';
684684
//occationaly the auth can get stuck only in host
685-
//this especialy happens in cases like
685+
//this especially happens in cases like
686686
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
687687
var authInHost = result.host && result.host.indexOf('@') > 0 ?
688688
result.host.split('@') : false;

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ static void OnFatalError(const char* location, const char* message) {
20702070

20712071
NO_RETURN void FatalError(const char* location, const char* message) {
20722072
OnFatalError(location, message);
2073-
// to supress compiler warning
2073+
// to suppress compiler warning
20742074
abort();
20752075
}
20762076

src/node_object_wrap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class ObjectWrap {
101101
* attached to detached state it will be freed. Be careful not to access
102102
* the object after making this call as it might be gone!
103103
* (A "weak reference" means an object that only has a
104-
* persistant handle.)
104+
* persistent handle.)
105105
*
106106
* DO NOT CALL THIS FROM DESTRUCTOR
107107
*/

0 commit comments

Comments
 (0)