Skip to content

Commit 9b1dabc

Browse files
committed
Fix incorrect description of request stream in Chapter 20
Closes marijnh#560
1 parent ce4dbfb commit 9b1dabc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

20_node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,8 @@ outcome of calling `pipe`.
994994

995995
When something goes wrong when opening the file, `createWriteStream`
996996
will still return a stream, but that stream will fire an `"error"`
997-
event. The output stream to the request may also fail, for example if
998-
the network goes down. So we wire up both streams' `"error"` events to
997+
event. The stream from the request may also fail, for example if the
998+
network goes down. So we wire up both streams' `"error"` events to
999999
reject the promise. When `pipe` is done, it will close the output
10001000
stream, which causes it to fire a `"finish"` event. That's the point
10011001
where we can successfully resolve the promise (returning nothing).

html/errata.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ <h2>Chapter 19</h2>
114114

115115
<h2>Chapter 20</h2>
116116

117+
<p><strong>Page 367</strong> <em>A File Server</em>: The part that
118+
talks about “the output stream to the request” should say “the stream
119+
from the request” instead.</p>
120+
117121
<p><strong>Page 369</strong> (1st) <em>Directory
118122
Creation</em>: <code>MKCOL</code> stands for “make collection”, not “make
119123
column” as the book claims.</p>

0 commit comments

Comments
 (0)