diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 4af78e415f3d71..1100baf0ee5ca9 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -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