Skip to content

Commit 593206a

Browse files
mscdexMyles Borins
authored andcommitted
doc: fix net.createConnection() example
PR-URL: #5219 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 464636b commit 593206a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/net.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Here is an example of a client of the previously described echo server:
578578

579579
```js
580580
const net = require('net');
581-
const client = net.connect({port: 8124}, () => {
581+
const client = net.createConnection({port: 8124}, () => {
582582
//'connect' listener
583583
console.log('connected to server!');
584584
client.write('world!\r\n');

0 commit comments

Comments
 (0)