@@ -1059,7 +1059,7 @@ The :mod:`socket` module also offers various network-related services:
10591059 Convert an IPv4 address from dotted-quad string format (for example,
10601060 '123.45.67.89') to 32-bit packed binary format, as a bytes object four characters in
10611061 length. This is useful when conversing with a program that uses the standard C
1062- library and needs objects of type :c:type: ` struct in_addr `, which is the C type
1062+ library and needs objects of type :c:struct: ` in_addr `, which is the C type
10631063 for the 32-bit packed binary this function returns.
10641064
10651065 :func: `inet_aton ` also accepts strings with less than three dots; see the
@@ -1078,7 +1078,7 @@ The :mod:`socket` module also offers various network-related services:
10781078 Convert a 32-bit packed IPv4 address (a :term: `bytes-like object ` four
10791079 bytes in length) to its standard dotted-quad string representation (for example,
10801080 '123.45.67.89'). This is useful when conversing with a program that uses the
1081- standard C library and needs objects of type :c:type: ` struct in_addr `, which
1081+ standard C library and needs objects of type :c:struct: ` in_addr `, which
10821082 is the C type for the 32-bit packed binary data this function takes as an
10831083 argument.
10841084
@@ -1095,8 +1095,8 @@ The :mod:`socket` module also offers various network-related services:
10951095
10961096 Convert an IP address from its family-specific string format to a packed,
10971097 binary format. :func: `inet_pton ` is useful when a library or network protocol
1098- calls for an object of type :c:type: ` struct in_addr ` (similar to
1099- :func: `inet_aton `) or :c:type: ` struct in6_addr `.
1098+ calls for an object of type :c:struct: ` in_addr ` (similar to
1099+ :func: `inet_aton `) or :c:struct: ` in6_addr `.
11001100
11011101 Supported values for *address_family * are currently :const: `AF_INET ` and
11021102 :const: `AF_INET6 `. If the IP address string *ip_string * is invalid,
@@ -1116,8 +1116,8 @@ The :mod:`socket` module also offers various network-related services:
11161116 bytes) to its standard, family-specific string representation (for
11171117 example, ``'7.10.0.5' `` or ``'5aef:2b::8' ``).
11181118 :func: `inet_ntop ` is useful when a library or network protocol returns an
1119- object of type :c:type: ` struct in_addr ` (similar to :func: `inet_ntoa `) or
1120- :c:type: ` struct in6_addr `.
1119+ object of type :c:struct: ` in_addr ` (similar to :func: `inet_ntoa `) or
1120+ :c:struct: ` in6_addr `.
11211121
11221122 Supported values for *address_family * are currently :const: `AF_INET ` and
11231123 :const: `AF_INET6 `. If the bytes object *packed_ip * is not the correct
0 commit comments