mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Doc: Minor adjustment of socket.create_server
docs (#26938)
- fix spelling in create_server() docs - add a line about create_server() in the socket.py docstring
This commit is contained in:
parent
909868db2a
commit
a637c09a60
2 changed files with 2 additions and 1 deletions
|
@ -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``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue