Skip to content

Commit

Permalink
Merge pull request #385 from naoufal/patch-1
Browse files Browse the repository at this point in the history
Update const name to port
  • Loading branch information
jona committed Nov 27, 2015
2 parents bac5516 + 1ccf0cf commit 03f17d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locale/en/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ fired, but if there is no work to be done Node is sleeping.
const http = require('http');

const hostname = '127.0.0.1';
const post = 1337;
const port = 1337;

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

Expand Down

0 comments on commit 03f17d2

Please sign in to comment.