Skip to content

Commit a1dace1

Browse files
mscdexjasnell
authored andcommitted
doc: fix net.createConnection() example
PR-URL: #5219 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 31ebda2 commit a1dace1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/net.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ Here is an example of a client of the previously described echo server:
583583

584584
```js
585585
const net = require('net');
586-
const client = net.connect({port: 8124}, () => {
586+
const client = net.createConnection({port: 8124}, () => {
587587
//'connect' listener
588588
console.log('connected to server!');
589589
client.write('world!\r\n');

0 commit comments

Comments
 (0)