summaryrefslogtreecommitdiff
path: root/doc/api/synopsis.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/synopsis.md')
-rw-r--r--doc/api/synopsis.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/synopsis.md b/doc/api/synopsis.md
index 79b8819524..3a4a6f35e1 100644
--- a/doc/api/synopsis.md
+++ b/doc/api/synopsis.md
@@ -55,7 +55,7 @@ Open `hello-world.js` in any preferred text editor and
paste in the following content:
```js
-const http = require('http');
+const http = require('node:http');
const hostname = '127.0.0.1';
const port = 3000;