projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
610faf7
)
Fix typos
author
Ryan Dahl
<ry@tinyclouds.org>
Mon, 26 Apr 2010 05:29:55 +0000
(22:29 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 26 Apr 2010 05:44:31 +0000
(22:44 -0700)
doc/api.markdown
patch
|
blob
|
history
lib/events.js
patch
|
blob
|
history
diff --git
a/doc/api.markdown
b/doc/api.markdown
index
761c072
..
7144ac4
100644
(file)
--- 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
1210022
..
c77032f
100644
(file)
--- 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, unspec
i
fied 'error' event.");
}
return false;
}