doc: update http2.md example code

`require('http');` should be `require('http2');`

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
RefinedSoftwareLLC authored and Myles Borins committed 2017-09-12 03:17:06 +02:00
1 parent 6179c2764a
commit 78b2bc77f2
1 file changed
+1 -1
+1 -1
View File
@@ -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) => {