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 <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
comods authored and MylesBorins committed Sep 12, 2017
1 parent 6179c27 commit 78b2bc7
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 78b2bc7

Please sign in to comment.