summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-02-27 11:37:26 -0800
committerisaacs <i@izs.me>2012-02-27 11:37:26 -0800
commit5571c1aaa4e37a56f6ef0a874eb758137f10c78e (patch)
tree0549146d36e7cf1cd0f6565dc4a1beda5acaff32
parentf9df88c6dae7dabd79bb889d8e6b23ca4bdc7f1e (diff)
downloadnode-5571c1aaa4e37a56f6ef0a874eb758137f10c78e.tar.gz
'Events' is a module, not an event named 's'
-rw-r--r--doc/api/events.markdown2
-rw-r--r--tools/doc/json.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/events.markdown b/doc/api/events.markdown
index af64c6227..b9000f292 100644
--- a/doc/api/events.markdown
+++ b/doc/api/events.markdown
@@ -1,5 +1,7 @@
# Events
+<!--type=module-->
+
Many objects in Node emit events: a `net.Server` emits an event each time
a peer connects to it, a `fs.readStream` emits an event when the file is
opened. All objects which emit events are instances of `events.EventEmitter`.
diff --git a/tools/doc/json.js b/tools/doc/json.js
index f577f4d52..e4c5d76c4 100644
--- a/tools/doc/json.js
+++ b/tools/doc/json.js
@@ -487,7 +487,7 @@ function deepCopy_(src) {
// these parse out the contents of an H# tag
-var eventExpr = /^Event:?\s*['"]?([^"']+).*$/i;
+var eventExpr = /^Event(?::|\s)+['"]?([^"']+).*$/i;
var classExpr = /^Class:\s*([^ ]+).*?$/i;
var propExpr = /^(?:property:?\s*)?[^\.]+\.([^ \.\(\)]+)\s*?$/i;
var braceExpr = /^(?:property:?\s*)?[^\.\[]+(\[[^\]]+\])\s*?$/i;