Skip to content

Commit d3bc862

Browse files
MohammedEssehemytargos
authored andcommitted
doc: match program and console output in synopsis.md
PR-URL: #23006 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 15b91b9 commit d3bc862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/synopsis.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ different options and ways to run scripts with Node.js.
1010

1111
## Example
1212
An example of a [web server][] written with Node.js which responds with
13-
`'Hello World!'`:
13+
`'Hello, World!'`:
1414

1515
Commands displayed in this document are shown starting with `$` or `>`
1616
to replicate how they would appear in a user's terminal.
@@ -71,7 +71,7 @@ const port = 3000;
7171
const server = http.createServer((req, res) => {
7272
res.statusCode = 200;
7373
res.setHeader('Content-Type', 'text/plain');
74-
res.end('Hello World!\n');
74+
res.end('Hello, World!\n');
7575
});
7676

7777
server.listen(port, hostname, () => {
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/
9494

9595
Now, open any preferred web browser and visit `http://127.0.0.1:3000`.
9696

97-
If the browser displays the string `Hello, world!`, that indicates
97+
If the browser displays the string `Hello, World!`, that indicates
9898
the server is working.
9999

100100
Many of the examples in the documentation can be run similarly.

0 commit comments

Comments
 (0)