]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93183: Adjust wording in socket docs (#93832)
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>
Wed, 15 Jun 2022 08:36:37 +0000 (10:36 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 08:36:37 +0000 (10:36 +0200)
package => packet

Co-authored-by: Victor Norman
Doc/library/socket.rst

index 1b801955dff17ec042174d6a0224ce0fea018366..c732e7bd96b52c5d20566a1db5d5c4e3b8c649a6 100644 (file)
@@ -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