Skip to content

Commit 0c9c569

Browse files
committed
Remove incorrect prefix for request function
Closes marijnh#406
1 parent 795537b commit 0c9c569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

20_node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ in the `http` module.
551551

552552
```
553553
const {request} = require("http");
554-
let requestStream = http.request({
554+
let requestStream = request({
555555
hostname: "eloquentjavascript.net",
556556
path: "/20_node.html",
557557
method: "GET",
@@ -598,7 +598,7 @@ we know from the browser.
598598

599599
We have seen two instances of writable streams in the HTTP
600600
examples—namely, the response object that the server could write to
601-
and the request object that was returned from `http.request`.
601+
and the request object that was returned from `request`.
602602

603603
{{index "callback function", "asynchronous programming", "write method", "end method", "Buffer class"}}
604604

0 commit comments

Comments
 (0)