From: Erlend Egeberg Aasland Date: Wed, 15 Jun 2022 08:36:37 +0000 (+0200) Subject: gh-93183: Adjust wording in socket docs (#93832) X-Git-Tag: v3.12.0a1~1255 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdd39843073fc27b8e4a887d5d3b7992cb2ced60;p=thirdparty%2FPython%2Fcpython.git gh-93183: Adjust wording in socket docs (#93832) package => packet Co-authored-by: Victor Norman --- diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 1b801955dff1..c732e7bd96b5 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -2076,10 +2076,10 @@ the interface:: # Include IP headers s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1) - # receive all packages + # receive all packets s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON) - # receive a package + # receive a packet print(s.recvfrom(65565)) # disabled promiscuous mode