fixes #6031 spelling errors
authorMatthew Aynalem <maynalem@gmail.com>
Mon, 12 Aug 2013 22:01:05 +0000 (15:01 -0700)
committerisaacs <i@izs.me>
Mon, 19 Aug 2013 23:42:16 +0000 (16:42 -0700)
explictly => explicitly
accesss => access
througput => throughput
epxression => expression
communiction => communication
becuase => because
repersent => represent
condonitions => conditions
decompresion => decompression
intentially => intentionally
eventes => events
listning => listening
resicved => received
becuase => because
fundimental => fundamental
colapse => collapse
privlages => privileges
sufficently => sufficiently
hapepns => happens
expliclitly => explicitly
thier => their
shold => should

24 files changed:
benchmark/fs/read-stream-throughput.js
benchmark/fs/write-stream-throughput.js
lib/_debugger.js
lib/_stream_readable.js
lib/_stream_writable.js
lib/_tls_wrap.js
lib/domain.js
lib/module.js
lib/readline.js
src/node.js
test/disabled/test-eio-race.js
test/disabled/test-sendfd.js
test/disabled/test-setuidgid.js
test/simple/test-child-process-disconnect.js
test/simple/test-cluster-dgram-2.js
test/simple/test-cluster-message.js
test/simple/test-cluster-worker-disconnect.js
test/simple/test-cluster-worker-exit.js
test/simple/test-cluster-worker-kill.js
test/simple/test-http-client-timeout-event.js
test/simple/test-http-res-write-end-dont-take-array.js
test/simple/test-repl-.save.load.js
test/simple/test-url.js
test/simple/test-zlib-dictionary.js

index af9a235..45582e9 100644 (file)
@@ -1,4 +1,4 @@
-// test the througput of the fs.WriteStream class.
+// test the throughput of the fs.WriteStream class.
 
 var path = require('path');
 var common = require('../common.js');
index 57ce4c4..9ff5838 100644 (file)
@@ -1,4 +1,4 @@
-// test the througput of the fs.WriteStream class.
+// test the throughput of the fs.WriteStream class.
 
 var path = require('path');
 var common = require('../common.js');
index ff33af5..aca52e5 100644 (file)
@@ -366,7 +366,7 @@ Client.prototype.reqEval = function(expression, cb) {
 };
 
 
-// Finds the first scope in the array in which the epxression evals.
+// Finds the first scope in the array in which the expression evals.
 Client.prototype._reqFramesEval = function(expression, evalFrames, cb) {
   if (evalFrames.length == 0) {
     // Just eval in global scope.
index ca4cb0a..0c3fe3e 100644 (file)
@@ -51,7 +51,7 @@ function ReadableState(options, stream) {
   this.reading = false;
 
   // a flag to be able to tell if the onwrite cb is called immediately,
-  // or on a later tick.  We set this to true at first, becuase any
+  // or on a later tick.  We set this to true at first, because any
   // actions that shouldn't happen until "later" should generally also
   // not happen before the first write call.
   this.sync = true;
index d091459..ba2e920 100644 (file)
@@ -84,7 +84,7 @@ function WritableState(options, stream) {
   this.corked = 0;
 
   // a flag to be able to tell if the onwrite cb is called immediately,
-  // or on a later tick.  We set this to true at first, becuase any
+  // or on a later tick.  We set this to true at first, because any
   // actions that shouldn't happen until "later" should generally also
   // not happen before the first write call.
   this.sync = true;
index e475887..a1fdf0a 100644 (file)
@@ -157,7 +157,7 @@ TLSSocket.prototype._init = function() {
   // lib/net.js expect this value to be non-zero if write hasn't been flushed
   // immediately
   // TODO(indutny): rewise this solution, it might be 1 before handshake and
-  // repersent real writeQueueSize during regular writes.
+  // represent real writeQueueSize during regular writes.
   this._handle.writeQueueSize = 1;
 
   var self = this;
index 588fb75..493c73c 100644 (file)
@@ -24,7 +24,7 @@ var events = require('events');
 var EventEmitter = events.EventEmitter;
 var inherits = util.inherits;
 
-// methods that are called when trying to shut down expliclitly bound EEs
+// methods that are called when trying to shut down explicitly bound EEs
 var endMethods = ['end', 'abort', 'destroy', 'destroySoon'];
 
 // communicate with events module, but don't require that
index 07730ff..88e0c5a 100644 (file)
@@ -50,7 +50,7 @@ function Module(id, parent) {
 module.exports = Module;
 
 // Set the environ variable NODE_MODULE_CONTEXTS=1 to make node load all
-// modules in thier own context.
+// modules in their own context.
 Module._contextLoad = (+process.env['NODE_MODULE_CONTEXTS'] > 0);
 Module._cache = {};
 Module._pathCache = {};
index 68dde4d..8b5ad99 100644 (file)
@@ -727,7 +727,7 @@ Interface.prototype._ttyWrite = function(s, key) {
                 self.pause();
                 self.emit('SIGCONT');
               }
-              // explictly re-enable "raw mode" and move the cursor to
+              // explicitly re-enable "raw mode" and move the cursor to
               // the correct position.
               // See https://github.com/joyent/node/issues/3295.
               self._setRawMode(true);
index fae354b..549f580 100644 (file)
@@ -83,7 +83,7 @@
       var path = NativeModule.require('path');
       process.argv[1] = path.resolve(process.argv[1]);
 
-      // If this is a worker in cluster mode, start up the communiction
+      // If this is a worker in cluster mode, start up the communication
       // channel.
       if (process.env.NODE_UNIQUE_ID) {
         var cluster = NativeModule.require('cluster');
     var nextTickQueue = [];
 
     // this infoBox thing is used so that the C++ code in src/node.cc
-    // can have easy accesss to our nextTick state, and avoid unnecessary
+    // can have easy access to our nextTick state, and avoid unnecessary
     // calls into process._tickCallback.
     // order is [length, index, inTick, lastThrew]
     // Never write code like this without very good reason!
index 558d09a..ec9e449 100644 (file)
@@ -26,7 +26,7 @@ var assert = require('assert');
 var count = 100;
 var fs = require('fs');
 
-// person.jpg is 57kb. We just need some file that is sufficently large.
+// person.jpg is 57kb. We just need some file that is sufficiently large.
 var filename = require('path').join(common.fixturesDir, 'person.jpg');
 
 function tryToKillEventLoop() {
index 7352d79..7f1cb6b 100644 (file)
@@ -34,7 +34,7 @@
 //     path, they are sent the write end of the pipe from above.
 //  3. The client is sent n JSON representations of the DATA variable, each
 //     with a different ordinal. We send these delimited by '\n' strings
-//     so that the receiving end can avoid any coalescing that hapepns
+//     so that the receiving end can avoid any coalescing that happens
 //     due to the stream nature of the socket (e.g. '{}{}' is not a valid
 //     JSON string).
 //  4. The child process receives file descriptors and JSON blobs and,
index 3d33e00..47cff97 100644 (file)
@@ -22,7 +22,7 @@
 
 
 
-// Requires special privlages
+// Requires special privileges
 var common = require('../common');
 var assert = require('assert');
 
index 301034c..5902be8 100644 (file)
@@ -84,7 +84,7 @@ if (process.argv[2] === 'child') {
     childSelfTerminate = true;
   });
 
-  // when child is listning
+  // when child is listening
   child.on('message', function(msg) {
     if (msg === 'ready') {
 
index d06ad79..cb5eaf0 100644 (file)
@@ -6,7 +6,7 @@
 // without limitation the rights to use, copy, modify, merge, publish,
 // distribute, sublicense, and/or sell copies of the Software, and to permit
 // persons to whom the Software is furnished to do so, subject to the
-// following condonitions:
+// following conditions:
 //
 // The above copyright notice and this permission notice shall be included
 // in all copies or substantial portions of the Software.
index 005cf28..7407515 100644 (file)
@@ -97,7 +97,7 @@ else if (cluster.isMaster) {
   // Spawn worker
   var worker = cluster.fork();
 
-  // When a IPC message is resicved form the worker
+  // When a IPC message is received form the worker
   worker.on('message', function(message) {
     check('master', message === 'message from worker');
   });
index 15329c9..632a25f 100644 (file)
@@ -73,7 +73,7 @@ if (cluster.isWorker) {
     checks.cluster.emitExit = true;
   });
 
-  // Check worker eventes and properties
+  // Check worker events and properties
   worker.once('disconnect', function() {
     checks.worker.emitDisconnect = true;
     checks.worker.suicideMode = worker.suicide;
index 38b44c1..7b9d5d8 100644 (file)
@@ -85,7 +85,7 @@ if (cluster.isWorker) {
         "cluster: 'exit' event before 'disconnect' event");
   });
 
-  // Check worker eventes and properties
+  // Check worker events and properties
   worker.on('disconnect', function() {
     results.worker_emitDisconnect += 1;
     results.worker_suicideMode = worker.suicide;
index 284b83e..8c6068e 100644 (file)
@@ -83,7 +83,7 @@ if (cluster.isWorker) {
         "cluster: 'exit' event before 'disconnect' event");
   });
 
-  // Check worker eventes and properties
+  // Check worker events and properties
   worker.on('disconnect', function() {
     results.worker_emitDisconnect += 1;
     results.worker_suicideMode = worker.suicide;
index e0fb16e..e3e37f6 100644 (file)
@@ -39,7 +39,7 @@ server.listen(options.port, options.host, function() {
     // this space intentionally left blank
   });
   req.on('error', function() {
-    // this space is intentially left blank
+    // this space is intentionally left blank
   });
   req.on('close', function() {
     server.close();
index 0d68afc..d60b755 100644 (file)
@@ -55,7 +55,7 @@ server.listen(common.PORT, function() {
   // just make a request, other tests handle responses
   http.get({port: common.PORT}, function(res) {
     res.resume();
-    // lazy serial test, becuase we can only call end once per request
+    // lazy serial test, because we can only call end once per request
     test += 1;
     // do it again to test .end(Buffer);
     http.get({port: common.PORT}, function(res) {
index b5749c8..fdbf18f 100644 (file)
@@ -85,7 +85,7 @@ putIn.run(['.clear']);
 
 var loadFile = join(common.tmpDir, 'file.does.not.exist');
 
-// shold not break
+// should not break
 putIn.write = function(data) {
   // make sure I get a failed to load message and not some crazy error
   assert.equal(data, 'Failed to load:' + loadFile + '\n');
index 215909e..89397bc 100644 (file)
@@ -1442,13 +1442,13 @@ relativeTests.forEach(function(relativeTest) {
 });
 
 //format: [to, from, result]
-// the test: ['.//g', 'f:/a', 'f://g'] is a fundimental problem
+// the test: ['.//g', 'f:/a', 'f://g'] is a fundamental problem
 // url.parse('f:/a') does not have a host
-// url.resolve('f:/a', './/g') does not have a host becuase you have moved
+// url.resolve('f:/a', './/g') does not have a host because you have moved
 // down to the g directory.  i.e. f:     //g, however when this url is parsed
 // f:// will indicate that the host is g which is not the case.
 // it is unclear to me how to keep this information from being lost
-// it may be that a pathname of ////g should colapse to /g but this seems
+// it may be that a pathname of ////g should collapse to /g but this seems
 // to be a lot of work for an edge case.  Right now I remove the test
 if (relativeTests2[181][0] === './/g' &&
     relativeTests2[181][1] === 'f:/a' &&
index f3b1446..58da810 100644 (file)
@@ -19,7 +19,7 @@
 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 // USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-// test compression/decompresion with dictionary
+// test compression/decompression with dictionary
 
 var common = require('../common.js');
 var assert = require('assert');