summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>2022-06-15 08:36:37 (GMT)
committerGitHub <noreply@github.com>2022-06-15 08:36:37 (GMT)
commitcdd39843073fc27b8e4a887d5d3b7992cb2ced60 (patch)
tree0e1135622d226cfa5bc48114ad0ab8e214d418ad /Doc/library/socket.rst
parent4f26963526f386bba84de8e14962163bfd5da955 (diff)
downloadcpython-cdd39843073fc27b8e4a887d5d3b7992cb2ced60.zip
cpython-cdd39843073fc27b8e4a887d5d3b7992cb2ced60.tar.gz
cpython-cdd39843073fc27b8e4a887d5d3b7992cb2ced60.tar.bz2
gh-93183: Adjust wording in socket docs (#93832)
package => packet Co-authored-by: Victor Norman
Diffstat (limited to 'Doc/library/socket.rst')
-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 1b80195..c732e7b 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