Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6693b40

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc: simplify and correct example descriptions in net.md
Instead of indicating that examples show lines to change in previous examples, present the examples as standalone items. They suffice on their own. In the first of these, it says to change "the second line" of a previous example, but if it were literally changed to the provided line, it would result in a syntax error. In the second of these, it gives the wrong line to change. All of this is unnecessary and probably makes the examples harder to follow. So simplify and treat each one as a separate example. PR-URL: #32451 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 94952b4 commit 6693b40
Copy full SHA for 6693b40

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+2-4Lines changed: 2 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1064,8 +1064,7 @@ client.on('end', () => {
10641064
});
10651065
```
10661066

1067-
To connect on the socket `/tmp/echo.sock` the second line would just be
1068-
changed to:
1067+
To connect on the socket `/tmp/echo.sock`:
10691068

10701069
```js
10711070
const client = net.createConnection({ path: '/tmp/echo.sock' });
@@ -1174,8 +1173,7 @@ Test this by using `telnet`:
11741173
$ telnet localhost 8124
11751174
```
11761175

1177-
To listen on the socket `/tmp/echo.sock` the third line from the last would
1178-
just be changed to:
1176+
To listen on the socket `/tmp/echo.sock`:
11791177

11801178
```js
11811179
server.listen('/tmp/echo.sock', () => {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.