gh-93183: Adjust wording in socket docs (GH-93832)

package => packet

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

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
Miss Islington (bot) 2022-06-15 01:44:14 -07:00 committed by GitHub
parent 7db66d8816
commit cde0dadd34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2028,10 +2028,10 @@ the interface::
# Include IP headers # Include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1) s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
# receive all packages # receive all packets
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON) s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
# receive a package # receive a packet
print(s.recvfrom(65565)) print(s.recvfrom(65565))
# disabled promiscuous mode # disabled promiscuous mode