Permalink
Browse files

fixed docs: stream.close, not stream.end (fixes #27)

  • Loading branch information...
1 parent d78ad5e commit 87539cfae03b36af8ea9959b683f1c7587b35c3d Hendrik Schnepel committed Nov 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -288,7 +288,7 @@ Returns an `events.EventEmitter` stream that emits the following events:
* `data(change)`: Emitted for each change line in the stream. The `change` parameter holds the change object.
* `heartbeat`: Emitted for each heartbeat send by CouchDB, no need to check this for most stuff.
-* `end(hadError)`: Emitted if the stream ends. This should not happen unless you manually invoke `stream.end()`.
+* `end(hadError)`: Emitted if the stream ends. This should not happen unless you manually invoke `stream.close()`.
See the [CouchDB docs](http://wiki.apache.org/couchdb/HTTP_database_API#Changes) for available `query` parameters.

0 comments on commit 87539cf

Please sign in to comment.