Skip to content

Commit cca197f

Browse files
XhmikosRMylesBorins
authored andcommitted
Assorted typo fixes.
1 parent 195b569 commit cca197f

26 files changed

Lines changed: 40 additions & 40 deletions

locale/en/blog/release/v0.5.10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ layout: blog-post.hbs
1111

1212
2011.10.21, Version 0.5.10 (unstable)
1313
<ul><li>Remove cmake build system, support for Cygwin, legacy code base, process.ENV, process.ARGV, process.memoryUsage().vsize, os.openOSHandle</li>
14-
<li>Documentation improvments (Igor Zinkovsky, Bert Belder, Ilya Dmitrichenko, koichik, Maciej Małecki, Guglielmo Ferri, isaacs)</li>
14+
<li>Documentation improvements (Igor Zinkovsky, Bert Belder, Ilya Dmitrichenko, koichik, Maciej Małecki, Guglielmo Ferri, isaacs)</li>
1515
<li>Performance improvements (Daniel Ennis, Bert Belder, Ben Noordhuis) </li>
1616
<li>Long process.title support (Ben Noordhuis)</li>
1717
<li>net: register net.Server callback only once (Simen Brekken)</li>

locale/en/blog/release/v0.5.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ layout: blog-post.hbs
4040
<p>Documentation: <a href="https://nodejs.org/docs/v0.5.5/api/">https://nodejs.org/docs/v0.5.5/api/</a></p>
4141
<br /><br />
4242

43-
<b>Update:</b> The <code>.exe</code> has a bug that results in incompatibility with Windows XP and Server 2003. This has been reported in <a href="https://github.com/joyent/node/issues/1592">issue #1592</a> and fixed. A new binary was made that is compatibile with the older Windows: <a href="https://nodejs.org/dist/v0.5.5/node-186364e.exe">https://nodejs.org/dist/v0.5.5/node-186364e.exe</a>.
43+
<b>Update:</b> The <code>.exe</code> has a bug that results in incompatibility with Windows XP and Server 2003. This has been reported in <a href="https://github.com/joyent/node/issues/1592">issue #1592</a> and fixed. A new binary was made that is compatible with the older Windows: <a href="https://nodejs.org/dist/v0.5.5/node-186364e.exe">https://nodejs.org/dist/v0.5.5/node-186364e.exe</a>.

locale/en/blog/release/v5.10.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ author: Myles Borins
1111
### Notable changes
1212

1313
* **http**:
14-
* Enclose IPv6 Host header in square brackets. This will enable proper seperation of the host adress from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
14+
* Enclose IPv6 Host header in square brackets. This will enable proper separation of the host address from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314)
1515

1616
* **path**:
1717
* Make win32.isAbsolute more consistent (Brian White) [#6028](https://github.com/nodejs/node/pull/6028)

locale/en/knowledge/cryptography/how-to-use-crypto-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ if (argv.e && argv.key) {
125125
}
126126
```
127127

128-
NODE PRO TIP: The `crypto.createCipheriv()` and `crypto.createDecipheriv()` methods do not take a password, rather a `key` and an `iv` which are combined together to form a random password. The size of the `key` and `iv` depends on the choosen algorithm. A reference to common algorithms and their `key` and `iv` size is given below:
128+
NODE PRO TIP: The `crypto.createCipheriv()` and `crypto.createDecipheriv()` methods do not take a password, rather a `key` and an `iv` which are combined together to form a random password. The size of the `key` and `iv` depends on the chosen algorithm. A reference to common algorithms and their `key` and `iv` size is given below:
129129

130130
| Algorithm | Key | iv |
131131
| ------------- |:-----------------: | :----------------: |

locale/ko/about/trademark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ goal in mind, we’ve tried to make the policy as flexible and easy to understan
3434
as legally possible.
3535
3636
Please read the [full policy](/static/documents/trademark-policy.pdf).
37-
If you have any questions don't hesistate to
37+
If you have any questions don't hesitate to
3838
[email us](mailto:trademark@nodejs.org).
3939
4040
Guidelines for the visual display of the Node.js mark are described in

locale/ru/knowledge/HTTP/clients/how-to-create-a-HTTP-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ As an example, we are going to preform a GET request to [www.random.org/integers
2424
callback = function(response) {
2525
var str = '';
2626

27-
//another chunk of data has been recieved, so append it to `str`
27+
//another chunk of data has been received, so append it to `str`
2828
response.on('data', function (chunk) {
2929
str += chunk;
3030
});
3131

32-
//the whole response has been recieved, so we just print it out here
32+
//the whole response has been received, so we just print it out here
3333
response.on('end', function () {
3434
console.log(str);
3535
});

locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Here is a quick script that shows you how to do exactly that:
3636

3737
The variable `postHTML` is a static string containing the HTML for two input boxes and a submit box - this HTML is provided so that you can `POST` example data. This is NOT the right way to serve static HTML - please see [How to Serve Static Files](link) for a more proper example.
3838

39-
With the HTML out of the way, we [create a server](/how-do-i-create-a-http-server) to listen for requests. It is important to note, when listening for POST data, that the `req` object is also an [Event Emitter](/what-are-event-emitters). `req`, therefore, will emit a `data` event whenever a 'chunk' of incoming data is received; when there is no more incoming data, the `end` event is emitted. So, in our case, we listen for `data` events. Once all the data is recieved, we log the data to the console and send the response.
39+
With the HTML out of the way, we [create a server](/how-do-i-create-a-http-server) to listen for requests. It is important to note, when listening for POST data, that the `req` object is also an [Event Emitter](/what-are-event-emitters). `req`, therefore, will emit a `data` event whenever a 'chunk' of incoming data is received; when there is no more incoming data, the `end` event is emitted. So, in our case, we listen for `data` events. Once all the data is received, we log the data to the console and send the response.
4040

4141
Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached!
4242

43-
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
43+
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
4444

locale/ru/knowledge/file-system/how-to-use-the-path-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Note that `basename` has an optional second parameter that will strip out the ex
5353

5454
Lastly, the `path` module provides methods to check whether or not a given path exists: `exists` and `existsSync` They both take the path of a file for the first parameter.
5555

56-
`exists` takes a callback as its second parameter, to which is returned a boolean representing the existance of the file.
56+
`exists` takes a callback as its second parameter, to which is returned a boolean representing the existence of the file.
5757

5858
`existsSync`, on the other hand, checks the given path synchronously, returning the boolean directly. In Node.js, you will typically want to use the asynchronous functions for most file system I/O - the synchronous versions will block your entire process until they finish.
5959

locale/ru/knowledge/getting-started/control-flow/what-are-callbacks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The node.js way to deal with the above would look a bit more like this:
2626
function processData (callback) {
2727
fetchData(function (err, data) {
2828
if (err) {
29-
console.log("An error has occured. Abort everything!");
29+
console.log("An error has occurred. Abort everything!");
3030
return callback(err);
3131
}
3232
data += 1;
@@ -41,7 +41,7 @@ The typical convention with asynchronous functions (which almost all of your fun
4141
function asyncOperation ( a, b, c, callback ) {
4242
// ... lots of hard work ...
4343
if ( /* an error occurs */ ) {
44-
return callback(new Error("An error has occured"));
44+
return callback(new Error("An error has occurred"));
4545
}
4646
// ... more work ...
4747
callback(null, d, e, f);

locale/ru/knowledge/getting-started/control-flow/what-are-event-emitters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In node.js an event can be described simply as a string with a corresponding cal
3434
> example_emitter.emit("unhandled");
3535
false //return value
3636

37-
This demonstates all the basic functionality of an EventEmitter. The `on` or `addListener` method (basically the subscription method) allows you to choose the event to watch for and the callback to be called. The `emit` method (the publish method), on the other hand, allows you to "emit" an event, which causes all callbacks registered to the event to 'fire', (get called).
37+
This demonstrates all the basic functionality of an EventEmitter. The `on` or `addListener` method (basically the subscription method) allows you to choose the event to watch for and the callback to be called. The `emit` method (the publish method), on the other hand, allows you to "emit" an event, which causes all callbacks registered to the event to 'fire', (get called).
3838

3939
So in the example, we first subscribe to both the `test` and `print` events. Then we emit the `test`, `print`, and `unhandled` events. Since `unhandled` has no callback, it just returns false; the other two run all the attached callbacks and return true.
4040

@@ -99,5 +99,5 @@ If you want remove a specific callback, you can use `removeListener`. If you wan
9999
> ee.emit("event");
100100
false
101101

102-
NOTE: If you want create more than 10 listeners on a single event, you will have to make a call to `ee.setMaxListeners(n)` where n is the max numbers of listeners (with zero being unlimited number of listeners). This is used to make sure you aren't accidently leaking event listeners.
102+
NOTE: If you want create more than 10 listeners on a single event, you will have to make a call to `ee.setMaxListeners(n)` where n is the max numbers of listeners (with zero being unlimited number of listeners). This is used to make sure you aren't accidentally leaking event listeners.
103103

0 commit comments

Comments
 (0)