Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9375f1

Browse files
committed
Fix typo in socket.getaddrinfo() docstring.
Reported by Krishna Kumar Thakur on docs@.
2 parents 0ca4703 + a6ec5ee commit d9375f1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/socketmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Module interface:
3333
- socket.ntohl(32 bit value) --> new int object
3434
- socket.htons(16 bit value) --> new int object
3535
- socket.htonl(32 bit value) --> new int object
36-
- socket.getaddrinfo(host, port [, family, socktype, proto, flags])
37-
--> List of (family, socktype, proto, canonname, sockaddr)
36+
- socket.getaddrinfo(host, port [, family, type, proto, flags])
37+
--> List of (family, type, proto, canonname, sockaddr)
3838
- socket.getnameinfo(sockaddr, flags) --> (host, port)
3939
- socket.AF_INET, socket.SOCK_STREAM, etc.: constants from <socket.h>
4040
- socket.has_ipv6: boolean value indicating if IPv6 is supported
@@ -5290,8 +5290,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
52905290
}
52915291

52925292
PyDoc_STRVAR(getaddrinfo_doc,
5293-
"getaddrinfo(host, port [, family, socktype, proto, flags])\n\
5294-
-> list of (family, socktype, proto, canonname, sockaddr)\n\
5293+
"getaddrinfo(host, port [, family, type, proto, flags])\n\
5294+
-> list of (family, type, proto, canonname, sockaddr)\n\
52955295
\n\
52965296
Resolve host and port into addrinfo struct.");
52975297

0 commit comments

Comments
 (0)