@@ -984,13 +984,13 @@ sock_sockaddr(struct sockaddr *addr, socklen_t len)
984
984
* Socket.gethostbyname(hostname) => [official_hostname, alias_hostnames, address_family, *address_list]
985
985
*
986
986
* Use Addrinfo.getaddrinfo instead.
987
- * This method is deprecated since following reasons:
987
+ * This method is deprecated for the following reasons:
988
988
*
989
- * - The 3rd element of result is the address family of the first address.
990
- * The address families of rest addresses are not returned.
989
+ * - The 3rd element of the result is the address family of the first address.
990
+ * The address families of the rest of the addresses are not returned.
991
991
* - Uncommon address representation:
992
992
* 4/16-bytes binary string to represent IPv4/IPv6 address.
993
- * - gethostbyname() is may take long time and it may block other threads.
993
+ * - gethostbyname() may take a long time and it may block other threads.
994
994
* (GVL cannot be released since gethostbyname() is not thread safe.)
995
995
* - This method uses gethostbyname() function already removed from POSIX.
996
996
*
@@ -1012,11 +1012,11 @@ sock_s_gethostbyname(VALUE obj, VALUE host)
1012
1012
* Socket.gethostbyaddr(address_string [, address_family]) => hostent
1013
1013
*
1014
1014
* Use Addrinfo#getnameinfo instead.
1015
- * This method is deprecated since following reasons:
1015
+ * This method is deprecated for the following reasons:
1016
1016
*
1017
1017
* - Uncommon address representation:
1018
1018
* 4/16-bytes binary string to represent IPv4/IPv6 address.
1019
- * - gethostbyaddr() is may take long time and it may block other threads.
1019
+ * - gethostbyaddr() may take a long time and it may block other threads.
1020
1020
* (GVL cannot be released since gethostbyname() is not thread safe.)
1021
1021
* - This method uses gethostbyname() function already removed from POSIX.
1022
1022
*
@@ -1164,8 +1164,8 @@ sock_s_getservbyport(int argc, VALUE *argv)
1164
1164
*
1165
1165
* Obtains address information for _nodename_:_servname_.
1166
1166
*
1167
- * Note that Addrinfo.getaddrinfo provides same functionality in
1168
- * object oriented style.
1167
+ * Note that Addrinfo.getaddrinfo provides the same functionality in
1168
+ * an object oriented style.
1169
1169
*
1170
1170
* _family_ should be an address family such as: :INET, :INET6, etc.
1171
1171
*
0 commit comments