Skip to content

Commit

Permalink
doc: fix net.createConnection() example
Browse files Browse the repository at this point in the history
PR-URL: #5219
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and jasnell committed Feb 15, 2016
1 parent 31ebda2 commit a1dace1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ Here is an example of a client of the previously described echo server:

```js
const net = require('net');
const client = net.connect({port: 8124}, () => {
const client = net.createConnection({port: 8124}, () => {
//'connect' listener
console.log('connected to server!');
client.write('world!\r\n');
Expand Down

0 comments on commit a1dace1

Please sign in to comment.