summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Essehemy <mohammedessehemy@gmail.com>2018-09-21 21:58:07 +0200
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-09-22 00:49:25 +0300
commit5942a3447a8b74c0030ed43cff440dbc93c1845a (patch)
treedd955cd0de665842ce1308726d2ccf3de9422a99
parent363570c07d8453c4e66e8cac326ecd1cc8d9fb51 (diff)
downloadandroid-node-v8-5942a3447a8b74c0030ed43cff440dbc93c1845a.tar.gz
android-node-v8-5942a3447a8b74c0030ed43cff440dbc93c1845a.tar.bz2
android-node-v8-5942a3447a8b74c0030ed43cff440dbc93c1845a.zip
doc: match program and console output in synopsis.md
PR-URL: https://github.com/nodejs/node/pull/23006 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
-rw-r--r--doc/api/synopsis.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/synopsis.md b/doc/api/synopsis.md
index ad14fae7b8..d22d684bfb 100644
--- a/doc/api/synopsis.md
+++ b/doc/api/synopsis.md
@@ -10,7 +10,7 @@ different options and ways to run scripts with Node.js.
## Example
An example of a [web server][] written with Node.js which responds with
-`'Hello World!'`:
+`'Hello, World!'`:
Commands displayed in this document are shown starting with `$` or `>`
to replicate how they would appear in a user's terminal.
@@ -71,7 +71,7 @@ const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
- res.end('Hello World!\n');
+ res.end('Hello, World!\n');
});
server.listen(port, hostname, () => {
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/
Now, open any preferred web browser and visit `http://127.0.0.1:3000`.
-If the browser displays the string `Hello, world!`, that indicates
+If the browser displays the string `Hello, World!`, that indicates
the server is working.
Many of the examples in the documentation can be run similarly.