doc: simplify and correct example descriptions in net.md · nodejs/node@bba8dd3 · GitHub
Skip to content

Commit bba8dd3

Browse files
Trotttargos
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 4b5fd24 commit bba8dd3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

doc/api/net.md

Lines changed: 2 additions & 4 deletions

0 commit comments

Comments
 (0)