Skip to content

Commit

Permalink
doc: update http2.md example code
Browse files Browse the repository at this point in the history
`require('http');` should be `require('http2');`

PR-URL: #14979
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
RefinedSoftwareLLC authored and MylesBorins committed Sep 10, 2017
1 parent 689bf8a commit 3094990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ invoked with two arguments: an Object containing the received
For example:

```js
const http2 = require('http');
const http2 = require('http2');
const client = http2.connect('https://localhost');
const req = client.request({ ':path': '/' });
req.on('response', (headers, flags) => {
Expand Down

0 comments on commit 3094990

Please sign in to comment.