From 2d664b2054e8cb072ee66cc30512d07d2c18ac13 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 17 Apr 2016 15:02:06 +0200 Subject: [PATCH] Add back semicolons to the HTTP server example in about page --- locale/en/about/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/locale/en/about/index.md b/locale/en/about/index.md index cf1dc20ad4f88..8bd782e768e43 100644 --- a/locale/en/about/index.md +++ b/locale/en/about/index.md @@ -11,20 +11,20 @@ connections can be handled concurrently. Upon each connection the callback is fired, but if there is no work to be done Node is sleeping. ```javascript -const http = require('http') +const http = require('http'); -const hostname = '127.0.0.1' -const port = 3000 +const hostname = '127.0.0.1'; +const port = 3000; const server = http.createServer((req, res) => { - res.statusCode = 200 - res.setHeader('Content-Type', 'text/plain') - res.end('Hello World\n') + res.statusCode = 200; + res.setHeader('Content-Type', 'text/plain'); + res.end('Hello World\n'); }) server.listen(port, hostname, () => { - console.log(`Server running at http://${hostname}:${port}/`) -}) + console.log(`Server running at http://${hostname}:${port}/`); +}); ``` This is in contrast to today's more common concurrency model where OS threads