Browse Source

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>
v6.x
Mike Ralphson 9 years ago
committed by Jeremiah Senkpiel
parent
commit
65096de443
  1. 2
      doc/api/dns.md
  2. 2
      doc/api/os.md
  3. 2
      doc/api/path.md
  4. 6
      doc/api/process.md
  5. 2
      doc/api/stream.md
  6. 2
      doc/api/tls.md
  7. 4
      doc/api/url.md
  8. 2
      doc/api/zlib.md
  9. 2
      doc/topics/blocking-vs-non-blocking.md
  10. 2
      doc/topics/the-event-loop-timers-and-nexttick.md

2
doc/api/dns.md

@ -330,7 +330,7 @@ added: v0.1.27
Uses the DNS protocol to resolve text queries (`TXT` records) for the Uses the DNS protocol to resolve text queries (`TXT` records) for the
`hostname`. The `addresses` argument passed to the `callback` function is `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 `[ ['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 one record. Depending on the use case, these could be either joined together or
treated separately. treated separately.

2
doc/api/os.md

@ -398,7 +398,7 @@ The following signal constants are exported by `os.constants.signals`:
</tr> </tr>
<tr> <tr>
<td><code>SIGTRAP</code></td> <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>
<tr> <tr>
<td><code>SIGABRT</code></td> <td><code>SIGABRT</code></td>

2
doc/api/path.md

@ -135,7 +135,7 @@ added: v0.1.25
* `path` {String} * `path` {String}
The `path.extname()` method returns the extension of the `path`, from the last 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 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 first character of the basename of `path` (see `path.basename()`) is `.`, then
an empty string is returned. an empty string is returned.

6
doc/api/process.md

@ -216,7 +216,7 @@ rejections have not yet been handled.
The listener function is called with the following arguments: The listener function is called with the following arguments:
* `reason` {Error|any} The object with which the promise was rejected * `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. * `p` the `Promise` that was rejected.
For example: For example:
@ -1410,7 +1410,7 @@ added: v0.9.4
* `groups` {Array} * `groups` {Array}
The `process.setgroups()` method sets the supplementary group IDs for the 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. to have `root` or the `CAP_SETGID` capability.
The `groups` array can contain numeric group IDs, group names or both. 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 ## 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`). associated with `stdout` (fd `1`).
For example: For example:

2
doc/api/stream.md

@ -1668,7 +1668,7 @@ respectively.
In the following example, for instance, a new Transform stream (which is a 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 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. the Readable side.
```js ```js

2
doc/api/tls.md

@ -96,7 +96,7 @@ OpenSSL command-line interface to generate such parameters:
openssl dhparam -outform PEM -out dhparam.pem 2048 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 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 can be used when creating a TLS Server to specify the name of an
alternative curve to use. alternative curve to use.

4
doc/api/url.md

@ -64,7 +64,7 @@ For example: `'host.com:8080'`
The `auth` property is the username and password portion of the URL, also The `auth` property is the username and password portion of the URL, also
referred to as "userinfo". This string subset follows the `protocol` and 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}]`, ASCII "at sign" (`@`). The format of the string is `{username}[:{password}]`,
with the `[:{password}]` portion being optional. 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 method. If `false`, the `query` property on the returned URL object will be an
unparsed, undecoded string. Defaults to `false`. unparsed, undecoded string. Defaults to `false`.
* `slashesDenoteHost` {boolean} If `true`, the first token after the literal * `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 For instance, given `//foo/bar`, the result would be
`{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
Defaults to `false`. Defaults to `false`.

2
doc/api/zlib.md

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

2
doc/topics/blocking-vs-non-blocking.md

@ -93,7 +93,7 @@ occurring.
As an example, let's consider a case where each request to a web server takes 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 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 45ms per request to handle other requests. This is a significant difference in
capacity just by choosing to use **non-blocking** methods instead of capacity just by choosing to use **non-blocking** methods instead of
**blocking** methods. **blocking** methods.

2
doc/topics/the-event-loop-timers-and-nexttick.md

@ -69,7 +69,7 @@ actually uses - are those above._
* **timers**: this phase executes callbacks scheduled by `setTimeout()` * **timers**: this phase executes callbacks scheduled by `setTimeout()`
and `setInterval()`. 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 * **idle, prepare**: only used internally
* **poll**: retrieve new I/O events; node will block here when appropriate * **poll**: retrieve new I/O events; node will block here when appropriate
* **check**: `setImmediate()` callbacks are invoked here * **check**: `setImmediate()` callbacks are invoked here

Loading…
Cancel
Save