mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix dgram doc indentation
PR-URL: https://github.com/nodejs/node/pull/5118 Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
f0bd176d6d
commit
c4c8b3bf2e
1 file changed
+2
-1
@@ -358,6 +358,7 @@ s.bind(1234, () => {
|
||||
## `dgram` module functions
|
||||
|
||||
### dgram.createSocket(options[, callback])
|
||||
|
||||
* `options` Object
|
||||
* `callback` Function. Attached as a listener to `'message'` events.
|
||||
* Returns: Socket object
|
||||
@@ -378,7 +379,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
|
||||
[`socket.address().address`][] and [`socket.address().port`][].
|
||||
|
||||
## dgram.createSocket(type[, callback])
|
||||
### dgram.createSocket(type[, callback])
|
||||
|
||||
* `type` String. Either 'udp4' or 'udp6'
|
||||
* `callback` Function. Attached as a listener to `'message'` events.
|
||||
|
||||
Reference in new issue
Block a user