Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: use object destructuring in http.md
  • Loading branch information
vsemozhetbyt committed Apr 2, 2017
commit 10481af6499e8ff54bbda07b0fff2d153e6df9b0
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ JSON Fetching Example:

```js
http.get('http://nodejs.org/dist/index.json', (res) => {
const statusCode = res.statusCode;
const { statusCode } = res;
const contentType = res.headers['content-type'];

let error;
Expand Down