Skip to content

Commit

Permalink
doc: fix net.createConnection() example
Browse files Browse the repository at this point in the history
PR-URL: nodejs#5219
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and stefanmb committed Feb 23, 2016
1 parent 2719e05 commit 4d1abfd
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 4d1abfd

Please sign in to comment.