summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-15 08:51:28 (GMT)
committerGitHub <noreply@github.com>2022-06-15 08:51:28 (GMT)
commit095d09c0a8f76bc0e2cf29c59409d41eccdd0de8 (patch)
treec6edc5abf1163f27cf508432f70f9d82eb2bac1c /Doc
parent8b36ce69acc5999d5eefc289e29984df5ff216aa (diff)
downloadcpython-095d09c0a8f76bc0e2cf29c59409d41eccdd0de8.zip
cpython-095d09c0a8f76bc0e2cf29c59409d41eccdd0de8.tar.gz
cpython-095d09c0a8f76bc0e2cf29c59409d41eccdd0de8.tar.bz2
gh-93183: Adjust wording in socket docs (GH-93832)
package => packet Co-authored-by: Victor Norman (cherry picked from commit cdd39843073fc27b8e4a887d5d3b7992cb2ced60) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 4af78e4..1100baf 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1988,10 +1988,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