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 rvagg committed Feb 15, 2016
1 parent 9cee86e commit 35d89d4
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 35d89d4

Please sign in to comment.