Skip to content

Commit 78b2bc7

Browse files
comodsMylesBorins
authored andcommitted
doc: update http2.md example code
`require('http');` should be `require('http2');` PR-URL: #14979 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 6179c27 commit 78b2bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ invoked with two arguments: an Object containing the received
893893
For example:
894894

895895
```js
896-
const http2 = require('http');
896+
const http2 = require('http2');
897897
const client = http2.connect('https://localhost');
898898
const req = client.request({ ':path': '/' });
899899
req.on('response', (headers, flags) => {

0 commit comments

Comments
 (0)