Skip to content

Commit 03f17d2

Browse files
author
jona
committed
Merge pull request #385 from naoufal/patch-1
Update const name to port
2 parents bac5516 + 1ccf0cf commit 03f17d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

locale/en/about/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ fired, but if there is no work to be done Node is sleeping.
1414
const http = require('http');
1515

1616
const hostname = '127.0.0.1';
17-
const post = 1337;
17+
const port = 1337;
1818

1919
http.createServer((req, res) => {
2020
res.writeHead(200, { 'Content-Type': 'text/plain' });
2121
res.end('Hello World\n');
22-
}).listen(post, hostname, () => {
23-
console.log(`Server running at http://${hostname}:${post}/`);
22+
}).listen(port, hostname, () => {
23+
console.log(`Server running at http://${hostname}:${port}/`);
2424
});
2525
```
2626

0 commit comments

Comments
 (0)