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 Myles Borins committed Feb 22, 2016
1 parent 5149575 commit e13ef6b
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 @@ -578,7 +578,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 e13ef6b

Please sign in to comment.