doc: Clean up net.Socket
authorRyan Scheel <Ryan.havvy@gmail.com>
Wed, 25 Feb 2015 11:24:45 +0000 (03:24 -0800)
committerChristian Tellnes <christian@tellnes.no>
Sun, 1 Mar 2015 18:36:00 +0000 (19:36 +0100)
commit6d26990d3237ca5816f7f24e2c2437ba96d2a20b
tree98f42721e9a340e5c2ef3bda58ec85a3b8aebc23
parentc380ac6e9887c6dd7dab0fde1e0d099b11bf9a2f
doc: Clean up net.Socket

net.Socket::connect(options[, connectListener]) was missing, with the
relevant details found on the net.connect function. I moved the
appropriate documentation over and then rewrote the documentation for
the function to say that it just creates a socket and calls the connect
method on it. I also changed the other net.Socket::connect variants to
say they are like the options version but called with a specific
options object.

net.connect and other functions were called methods even though they
don't use the `this` binding, so I changed method to function where
appropriate.

Finally, I added a missing period to the end of the module summary.
It's not really related to the rest of the changes, but benjamingr
noticed it.

PR-URL: https://github.com/iojs/io.js/pull/951
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Christian Tellnes <christian@tellnes.no>
doc/api/net.markdown