Skip to content

Commit

Permalink
doc: match program and console output in synopsis.md
Browse files Browse the repository at this point in the history
PR-URL: #23006
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
MohammedEssehemy authored and targos committed Sep 23, 2018
1 parent 15b91b9 commit d3bc862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/synopsis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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, () => {
Expand All @@ -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.
Expand Down

0 comments on commit d3bc862

Please sign in to comment.