Browse Source

doc: fix dgram doc indentation

PR-URL: https://github.com/nodejs/node/pull/5118
Reviewed-By: Roman Reiss <me@silverwind.io>
v4.x
Rich Trott 9 years ago
committed by Myles Borins
parent
commit
47269c2625
  1. 3
      doc/api/dgram.markdown

3
doc/api/dgram.markdown

@ -339,6 +339,7 @@ function:
## `dgram` module functions ## `dgram` module functions
### dgram.createSocket(options[, callback]) ### dgram.createSocket(options[, callback])
* `options` Object * `options` Object
* `callback` Function. Attached as a listener to `'message'` events. * `callback` Function. Attached as a listener to `'message'` events.
* Returns: Socket object * Returns: Socket object
@ -359,7 +360,7 @@ interfaces" address on a random port (it does the right thing for both `udp4`
and `udp6` sockets). The bound address and port can be retrieved using and `udp6` sockets). The bound address and port can be retrieved using
[`socket.address().address`][] and [`socket.address().port`][]. [`socket.address().address`][] and [`socket.address().port`][].
## dgram.createSocket(type[, callback]) ### dgram.createSocket(type[, callback])
* `type` String. Either 'udp4' or 'udp6' * `type` String. Either 'udp4' or 'udp6'
* `callback` Function. Attached as a listener to `'message'` events. * `callback` Function. Attached as a listener to `'message'` events.

Loading…
Cancel
Save