Skip to content

Commit

Permalink
pythongh-93183: Adjust wording in socket docs (pythonGH-93832)
Browse files Browse the repository at this point in the history
package => packet

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

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
  • Loading branch information
erlend-aasland authored and miss-islington committed Jun 15, 2022
1 parent 7db66d8 commit 401b4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2028,10 +2028,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
Expand Down

0 comments on commit 401b4b7

Please sign in to comment.