Skip to content

Commit

Permalink
doc: add missing require to example in http2.md
Browse files Browse the repository at this point in the history
PR-URL: #21858
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
kevinsimper authored and targos committed Jul 19, 2018
1 parent ab0da57 commit 4d78a21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,7 @@ instances.

```js
const http2 = require('http2');
const fs = require('fs');

const options = {
key: fs.readFileSync('server-key.pem'),
Expand Down

0 comments on commit 4d78a21

Please sign in to comment.