Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKevin Simper <kevin.simper@gmail.com>2018-07-18 01:26:04 +0300
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2018-10-17 02:07:24 +0300
commit32bfd7ebfbc705cd143b0a2816fdcb739810c0ad (patch)
tree60d3738505c4ed25baf14ccbf6b9c21efbc4021d /doc
parente5175e65962c8dcd383dbbd6b8d4fcb0897dfe32 (diff)
doc: add missing `require` to example in http2.md
Backport-PR-URL: https://github.com/nodejs/node/pull/22850 PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/http2.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 28e91551925..dd201c9dd7d 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -1921,6 +1921,7 @@ instances.
```js
const http2 = require('http2');
+const fs = require('fs');
const options = {
key: fs.readFileSync('server-key.pem'),