Skip to content

Commit

Permalink
Doc: Minor adjustment of socket.create_server docs (#26938)
Browse files Browse the repository at this point in the history
- fix spelling in create_server() docs
- add a line about create_server() in the socket.py docstring
  • Loading branch information
pavel-lexyr committed May 20, 2022
1 parent 909868d commit a637c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/socket.rst
Expand Up @@ -712,7 +712,7 @@ The following functions all create :ref:`socket objects <socket-objects>`.
.. function:: create_server(address, *, family=AF_INET, backlog=None, reuse_port=False, dualstack_ipv6=False)

Convenience function which creates a TCP socket bound to *address* (a 2-tuple
``(host, port)``) and return the socket object.
``(host, port)``) and returns the socket object.

*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
*backlog* is the queue size passed to :meth:`socket.listen`; when ``0``
Expand Down
1 change: 1 addition & 0 deletions Lib/socket.py
Expand Up @@ -28,6 +28,7 @@
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Expand Down

0 comments on commit a637c09

Please sign in to comment.