From 16813ca5241671ebdd0909e80e5f028c6b417b7e Mon Sep 17 00:00:00 2001 From: RefinedSoftwareLLC Date: Tue, 22 Aug 2017 09:57:37 -0600 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- doc/api/http2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {