Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

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: nodejs/node#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 addaleax committed Aug 28, 2017
1 parent e89446a commit 16813ca
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 16813ca

Please sign in to comment.