From cee908038108e7aa0b70032a784ecbd603ceff46 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 25 Apr 2010 22:29:55 -0700 Subject: [PATCH] Fix typos --- doc/api.markdown | 4 ++-- lib/events.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api.markdown b/doc/api.markdown index 761c072586..7144ac4b72 100644 --- a/doc/api.markdown +++ b/doc/api.markdown @@ -35,9 +35,9 @@ one-to-one correspondence. As an example, `foo.js` loads the module The contents of `foo.js`: - var circle = require('./circle'), + var circle = require('./circle'); var sys = require('sys'); - sys.puts( 'The area of a circle of radius 4 is ' + sys.puts( 'The area of a circle of radius 4 is ' + circle.area(4)); The contents of `circle.js`: diff --git a/lib/events.js b/lib/events.js index 12100221a9..c77032fe43 100644 --- a/lib/events.js +++ b/lib/events.js @@ -10,7 +10,7 @@ process.EventEmitter.prototype.emit = function (type) { if (arguments[1] instanceof Error) { throw arguments[1]; } else { - throw new Error("Uncaught, unspecfied 'error' event."); + throw new Error("Uncaught, unspecified 'error' event."); } return false; }