aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRefinedSoftwareLLC <mikar_gibbros@yahoo.com>2017-08-22 09:57:37 -0600
committerLance Ball <lball@redhat.com>2017-08-22 17:45:29 -0400
commitd70d36b3b20081e013b8a9f0e52ac34fb75c7e9c (patch)
tree7ef5aad2164a9ca0bb0bff699d1feee931d5ec20 /doc
parent82bad0b4d8b17e998b0ff15066f253f7e47c2feb (diff)
downloadandroid-node-v8-d70d36b3b20081e013b8a9f0e52ac34fb75c7e9c.tar.gz
android-node-v8-d70d36b3b20081e013b8a9f0e52ac34fb75c7e9c.tar.bz2
android-node-v8-d70d36b3b20081e013b8a9f0e52ac34fb75c7e9c.zip
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>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/api/http2.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 9d779eecca..d9b8aa97b0 100755
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -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) => {