doc: correct dgram's Socket.bind required args#11025
doc: correct dgram's Socket.bind required args#11025strugee wants to merge 1 commit intonodejs:masterfrom
Conversation
doc/api/dgram.md
Outdated
There was a problem hiding this comment.
I know its not your text, but could you add after
If
portis not specified
"or is 0"
There was a problem hiding this comment.
Unfortunately, socket.bind(port) and socket.bind(options) have cut-n-pasted docs, so you need to change in both places (or document the number variant by referring to the options variant).
There was a problem hiding this comment.
@sam-github pushed another fix. As a bonus I synced up some additional information that was missing from the options form.
doc/api/dgram.md
Outdated
There was a problem hiding this comment.
Unfortunately, socket.bind(port) and socket.bind(options) have cut-n-pasted docs, so you need to change in both places (or document the number variant by referring to the options variant).
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms.
|
@sam-github ping - this should be good to merge, no? |
|
Landed in 89e40c1, thanks. |
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
`port` was listed as required, but as described in the following paragraphs, it's actually not. Also, note that setting `port` to `0` will also cause the OS to assign a a random port and sync up the docs of both forms. PR-URL: #11025 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]>
portwas listed as required, but as described in the following paragraphs, it's actually not.Checklist
Affected core subsystem(s)
doc