From 01ced07b61b450956a3b0e0b189c1c43cefe79dc Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 13 Mar 2016 22:34:58 +0100 Subject: [PATCH 1/3] doc: fix typo in api/fs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: #5678 Reviewed-By: zkat - Kat Marchán Reviewed-By: evanlucas - Evan Lucas Reviewed-By: thefourtheye - Sakthipriyan Vairamani --- doc/api/fs.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 35fc7cfd370161..c6698e269e320d 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -382,7 +382,7 @@ default mode `w`. The `defaultEncoding` can be any one of those accepted by [`Bu If `autoClose` is set to true (default behavior) on `error` or `end` the file descriptor will be closed automatically. If `autoClose` is false, then the file descriptor won't be closed, even if there's an error. -It is your responsiblity to close it and make sure +It is your responsibility to close it and make sure there's no file descriptor leak. Like [`ReadStream`][], if `fd` is specified, `WriteStream` will ignore the From e82ae20f7f719edf7034638719c94c8e6031a185 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 13 Mar 2016 22:37:30 +0100 Subject: [PATCH 2/3] doc: fix typo in api/dgram MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: #5678 Reviewed-By: zkat - Kat Marchán Reviewed-By: evanlucas - Evan Lucas Reviewed-By: thefourtheye - Sakthipriyan Vairamani --- doc/api/dgram.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/dgram.markdown b/doc/api/dgram.markdown index 8d6de8d7f4b05d..1bb5155578d6cf 100644 --- a/doc/api/dgram.markdown +++ b/doc/api/dgram.markdown @@ -197,12 +197,12 @@ drop membership on all valid interfaces. Broadcasts a datagram on the socket. The destination `port` and `address` must be specified. -The `msg` argument containins the message to be sent. +The `msg` argument contains the message to be sent. Depending on its type, different behavior can apply. If `msg` is a `Buffer`, the `offset` and `length` specify the offset within the `Buffer` where the message begins and the number of bytes in the message, respectively. If `msg` is a `String`, then it is automatically converted to a `Buffer` -with `'utf8'` enecoding. With messages that +with `'utf8'` encoding. With messages that contain multi-byte characters, `offset` and `length` will be calculated with respect to [byte length][] and not the character position. If `msg` is an array, `offset` and `length` must not be specified. From 53ee9a5523f8569dc830c2f0132cde580d6cf706 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 13 Mar 2016 22:37:54 +0100 Subject: [PATCH 3/3] doc: fix typo in api/addons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: #5678 Reviewed-By: zkat - Kat Marchán Reviewed-By: evanlucas - Evan Lucas Reviewed-By: thefourtheye - Sakthipriyan Vairamani --- doc/api/addons.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/addons.markdown b/doc/api/addons.markdown index 7d9dfc9b9af48e..c330217beffa4d 100644 --- a/doc/api/addons.markdown +++ b/doc/api/addons.markdown @@ -207,7 +207,7 @@ release schedule is designed to minimize the frequency and impact of such changes but there is little that Node.js can do currently to ensure stability of the V8 APIs. -The [Native Abstrations for Node.js][] (or `nan`) provide a set of tools that +The [Native Abstractions for Node.js][] (or `nan`) provide a set of tools that Addon developers are recommended to use to keep compatibility between past and future releases of V8 and Node.js. See the `nan` [examples][] for an illustration of how it can be used. @@ -1085,7 +1085,7 @@ const addon = require('./build/Release/addon'); [installation instructions]: https://github.com/nodejs/node-gyp#installation [libuv]: https://github.com/libuv/libuv [Linking to Node.js' own dependencies]: #linking-to-nodejs-own-dependencies -[Native Abstrations for Node.js]: https://github.com/nodejs/nan +[Native Abstractions for Node.js]: https://github.com/nodejs/nan [node-gyp]: https://github.com/nodejs/node-gyp [require]: globals.html#globals_require [v8-docs]: https://v8docs.nodesource.com/