GeezerVison is showing github.com — doc: match program and console output in synopsis.md · nodejs/node@d3bc862
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/synopsis.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ different options and ways to run scripts with Node.js. |
10 | 10 |
|
11 | 11 | ## Example |
12 | 12 | An example of a [web server][] written with Node.js which responds with |
13 | | -`'Hello World!'`: |
| 13 | +`'Hello, World!'`: |
14 | 14 |
|
15 | 15 | Commands displayed in this document are shown starting with `$` or `>` |
16 | 16 | to replicate how they would appear in a user's terminal. |
@@ -71,7 +71,7 @@ const port = 3000; |
71 | 71 | const server = http.createServer((req, res) => { |
72 | 72 | res.statusCode = 200; |
73 | 73 | res.setHeader('Content-Type', 'text/plain'); |
74 | | - res.end('Hello World!\n'); |
| 74 | + res.end('Hello, World!\n'); |
75 | 75 | }); |
76 | 76 |
|
77 | 77 | server.listen(port, hostname, () => { |
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/ |
94 | 94 |
|
95 | 95 | Now, open any preferred web browser and visit `http://127.0.0.1:3000`. |
96 | 96 |
|
97 | | -If the browser displays the string `Hello, world!`, that indicates |
| 97 | +If the browser displays the string `Hello, World!`, that indicates |
98 | 98 | the server is working. |
99 | 99 |
|
100 | 100 | Many of the examples in the documentation can be run similarly. |
|