doc: fix typos

PR-URL: https://github.com/nodejs/node/pull/8370
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
pull/8398/head
Mike Ralphson 2016-09-01 15:55:42 +01:00 committed by Anna Henningsen
parent 609a265aeb
commit 3905f48882
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF
10 changed files with 13 additions and 13 deletions

View File

@ -330,7 +330,7 @@ added: v0.1.27
Uses the DNS protocol to resolve text queries (`TXT` records) for the
`hostname`. The `addresses` argument passed to the `callback` function is
is a two-dimentional array of the text records available for `hostname` (e.g.,
is a two-dimensional array of the text records available for `hostname` (e.g.,
`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
one record. Depending on the use case, these could be either joined together or
treated separately.

View File

@ -398,7 +398,7 @@ The following signal constants are exported by `os.constants.signals`:
</tr>
<tr>
<td><code>SIGTRAP</code></td>
<td>Sent to a proces when an exception has occurred.</td>
<td>Sent to a process when an exception has occurred.</td>
</tr>
<tr>
<td><code>SIGABRT</code></td>

View File

@ -135,7 +135,7 @@ added: v0.1.25
* `path` {String}
The `path.extname()` method returns the extension of the `path`, from the last
occurance of the `.` (period) character to end of string in the last portion of
occurrence of the `.` (period) character to end of string in the last portion of
the `path`. If there is no `.` in the last portion of the `path`, or if the
first character of the basename of `path` (see `path.basename()`) is `.`, then
an empty string is returned.

View File

@ -216,7 +216,7 @@ rejections have not yet been handled.
The listener function is called with the following arguments:
* `reason` {Error|any} The object with which the promise was rejected
(typically an [`Error`][] objet).
(typically an [`Error`][] object).
* `p` the `Promise` that was rejected.
For example:
@ -1410,7 +1410,7 @@ added: v0.9.4
* `groups` {Array}
The `process.setgroups()` method sets the supplementary group IDs for the
Node.js proess. This is a privileged operation that requires the Node.js process
Node.js process. This is a privileged operation that requires the Node.js process
to have `root` or the `CAP_SETGID` capability.
The `groups` array can contain numeric group IDs, group names or both.
@ -1497,7 +1497,7 @@ must call `process.stdin.resume()` to read from it. Note also that calling
## process.stdout
The `process.stdout` propety returns a [Writable][] stream equivalent to or
The `process.stdout` property returns a [Writable][] stream equivalent to or
associated with `stdout` (fd `1`).
For example:

View File

@ -1668,7 +1668,7 @@ respectively.
In the following example, for instance, a new Transform stream (which is a
type of [Duplex][] stream) is created that has an object mode Writable side
that accepts JavaScript numbers that are converted to hexidecimal strings on
that accepts JavaScript numbers that are converted to hexadecimal strings on
the Readable side.
```js

View File

@ -96,7 +96,7 @@ OpenSSL command-line interface to generate such parameters:
openssl dhparam -outform PEM -out dhparam.pem 2048
```
If using Perfect Foward Secrecy using `ECDHE`, Diffie-Hellman parameters are
If using Perfect Forward Secrecy using `ECDHE`, Diffie-Hellman parameters are
not required and a default ECDHE curve will be used. The `ecdheCurve` property
can be used when creating a TLS Server to specify the name of an
alternative curve to use.

View File

@ -64,7 +64,7 @@ For example: `'host.com:8080'`
The `auth` property is the username and password portion of the URL, also
referred to as "userinfo". This string subset follows the `protocol` and
double slashes (if present) and preceeds the `host` component, delimited by an
double slashes (if present) and precedes the `host` component, delimited by an
ASCII "at sign" (`@`). The format of the string is `{username}[:{password}]`,
with the `[:{password}]` portion being optional.
@ -208,7 +208,7 @@ added: v0.1.25
method. If `false`, the `query` property on the returned URL object will be an
unparsed, undecoded string. Defaults to `false`.
* `slashesDenoteHost` {boolean} If `true`, the first token after the literal
string `//` and preceeding the next `/` will be interpreted as the `host`.
string `//` and preceding the next `/` will be interpreted as the `host`.
For instance, given `//foo/bar`, the result would be
`{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
Defaults to `false`.

View File

@ -156,7 +156,7 @@ That is: 128K for windowBits=15 + 128K for memLevel = 8
(default values) plus a few kilobytes for small objects.
For example, to reduce the default memory requirements from 256K to 128K, the
options shoud be set to:
options should be set to:
```js
{ windowBits: 14, memLevel: 7 }

View File

@ -93,7 +93,7 @@ occurring.
As an example, let's consider a case where each request to a web server takes
50ms to complete and 45ms of that 50ms is database I/O that can be done
asychronously. Choosing **non-blocking** asynchronous operations frees up that
asynchronously. Choosing **non-blocking** asynchronous operations frees up that
45ms per request to handle other requests. This is a significant difference in
capacity just by choosing to use **non-blocking** methods instead of
**blocking** methods.

View File

@ -69,7 +69,7 @@ actually uses - are those above._
* **timers**: this phase executes callbacks scheduled by `setTimeout()`
and `setInterval()`.
* **I/O callbacks**: most types of callback except timers, `setImmedate()`, close
* **I/O callbacks**: most types of callback except timers, `setImmediate()`, close
* **idle, prepare**: only used internally
* **poll**: retrieve new I/O events; node will block here when appropriate
* **check**: `setImmediate()` callbacks are invoked here