]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93183: Adjust wording in socket docs (GH-93832)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Jun 2022 08:51:28 +0000 (01:51 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 08:51:28 +0000 (01:51 -0700)
package => packet

Co-authored-by: Victor Norman
(cherry picked from commit cdd39843073fc27b8e4a887d5d3b7992cb2ced60)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Doc/library/socket.rst

index 4af78e415f3d7142d1db5d8466cd6648b37772eb..1100baf0ee5ca95991fa8a9acb373a198dda86a0 100644 (file)
@@ -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