Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorElijah Insua <tmpvar@gmail.com>2011-07-11 09:35:25 +0400
committerisaacs <i@izs.me>2011-07-15 01:25:49 +0400
commitb722aaa8c52e580a7214451dc068a63ee2a3c0a4 (patch)
tree2310e9f9e792806d87daa223afb989fe27ec5b30 /doc
parent9b5098f509a433d6eea93da8d74b6a118718058a (diff)
Close #1303 Stream.pipe returns the destination
Squashed: * Simple change to make Stream.pipe(destination) return the destination Stream * Test: ensure Stream.pipe(destination) returns the destination Stream * updated Stream.pipe() documentation to reflect that it now returns the destination stream
Diffstat (limited to 'doc')
-rw-r--r--doc/api/streams.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/streams.markdown b/doc/api/streams.markdown
index 2bc05f3ec9b..01a841a1c31 100644
--- a/doc/api/streams.markdown
+++ b/doc/api/streams.markdown
@@ -78,6 +78,8 @@ Connects this read stream to `destination` WriteStream. Incoming
data on this stream gets written to `destination`. The destination and source
streams are kept in sync by pausing and resuming as necessary.
+This function returns the `destination` stream.
+
Emulating the Unix `cat` command:
process.stdin.resume();