Skip to content

Commit 649d201

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: improve server.address() doc text
PR-URL: #7001 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent e2e85ce commit 649d201

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/net.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Emitted when the server has been bound after calling `server.listen`.
3737

3838
### server.address()
3939

40-
Returns the bound address, the address family name and port of the server
40+
Returns the bound address, the address family name, and port of the server
4141
as reported by the operating system.
42-
Useful to find which port was assigned when giving getting an OS-assigned address.
43-
Returns an object with three properties, e.g.
42+
Useful to find which port was assigned when getting an OS-assigned address.
43+
Returns an object with `port`, `family`, and `address` properties:
4444
`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
4545

4646
Example:

0 commit comments

Comments
 (0)