Skip to content

Commit a637c09

Browse files
authored
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
1 parent 909868d commit a637c09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ The following functions all create :ref:`socket objects <socket-objects>`.
712712
.. function:: create_server(address, *, family=AF_INET, backlog=None, reuse_port=False, dualstack_ipv6=False)
713713

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

717717
*family* should be either :data:`AF_INET` or :data:`AF_INET6`.
718718
*backlog* is the queue size passed to :meth:`socket.listen`; when ``0``

Lib/socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
socket.setdefaulttimeout() -- set the default timeout value
2929
create_connection() -- connects to an address, with an optional timeout and
3030
optional source address.
31+
create_server() -- create a TCP socket and bind it to a specified address.
3132
3233
[*] not available on all platforms!
3334

0 commit comments

Comments
 (0)