Node.js net module documentation error
<p>Reading the Node.js documentation for the <code>net</code> module I can see the text used for <code>net.connect</code> and <code>net.createConnection</code> is exactly the same. Indeed the example used in <code>net.createConnection</code> uses <code>net.connect</code>.</p>

<p>Is this an error in the documentation? Is there any difference between <code>net.connect</code> and <code>net.createConnection</code>?</p>

<p>Thanks.</p>