diff options
author | Marcus Stollsteimer <sto.mar@web.de> | 2021-01-05 15:13:53 +0100 |
---|---|---|
committer | Marcus Stollsteimer <sto.mar@web.de> | 2021-01-05 15:13:53 +0100 |
commit | 3108ad7bf3dcae52054a1c29b86246cdb470000b (patch) | |
tree | 48879bbd126fe3c3ee37f714130abe7c4a2de49a /ext | |
parent | 3d439447250f19333418adcdf777142dda4b3364 (diff) | |
download | ruby-3108ad7bf3dcae52054a1c29b86246cdb470000b.tar.gz |
[DOC] Fix grammar: "is same as" -> "is the same as"
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pty/pty.c | 2 | ||||
-rw-r--r-- | ext/socket/ipsocket.c | 6 | ||||
-rw-r--r-- | ext/socket/socket.c | 2 | ||||
-rw-r--r-- | ext/win32/lib/win32/registry.rb | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index e53871ede5..d927adc560 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -271,7 +271,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg, int flags = O_RDWR|O_NOCTTY; # if defined(O_CLOEXEC) /* glibc posix_openpt() in GNU/Linux calls open("/dev/ptmx", flags) internally. - * So version dependency on GNU/Linux is same as O_CLOEXEC with open(). + * So version dependency on GNU/Linux is the same as O_CLOEXEC with open(). * O_CLOEXEC is available since Linux 2.6.23. Linux 2.6.18 silently ignore it. */ flags |= O_CLOEXEC; # endif diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index 72fea789a5..b5cdc60080 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -258,7 +258,7 @@ ip_inspect(VALUE sock) * If +reverse_lookup+ is +true+ or +:hostname+, * hostname is obtained from numeric_address using reverse lookup. * Or if it is +false+, or +:numeric+, - * hostname is same as numeric_address. + * hostname is the same as numeric_address. * Or if it is +nil+ or omitted, obeys to +ipsocket.do_not_reverse_lookup+. * See +Socket.getaddrinfo+ also. * @@ -299,7 +299,7 @@ ip_addr(int argc, VALUE *argv, VALUE sock) * If +reverse_lookup+ is +true+ or +:hostname+, * hostname is obtained from numeric_address using reverse lookup. * Or if it is +false+, or +:numeric+, - * hostname is same as numeric_address. + * hostname is the same as numeric_address. * Or if it is +nil+ or omitted, obeys to +ipsocket.do_not_reverse_lookup+. * See +Socket.getaddrinfo+ also. * @@ -341,7 +341,7 @@ ip_peeraddr(int argc, VALUE *argv, VALUE sock) * * _flags_ should be a bitwise OR of Socket::MSG_* constants. * - * ipaddr is same as IPSocket#{peeraddr,addr}. + * ipaddr is the same as IPSocket#{peeraddr,addr}. * * u1 = UDPSocket.new * u1.bind("127.0.0.1", 4913) diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 3d8c65032c..5b6f4ab755 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1154,7 +1154,7 @@ sock_s_getservbyport(int argc, VALUE *argv, VALUE _) * be one of below. If _reverse_lookup_ is omitted, the default value is +nil+. * * +true+, +:hostname+: hostname is obtained from numeric address using reverse lookup, which may take a time. - * +false+, +:numeric+: hostname is same as numeric address. + * +false+, +:numeric+: hostname is the same as numeric address. * +nil+: obey to the current +do_not_reverse_lookup+ flag. * * If Addrinfo object is preferred, use Addrinfo.getaddrinfo. diff --git a/ext/win32/lib/win32/registry.rb b/ext/win32/lib/win32/registry.rb index ffc2979179..b5b99ff684 100644 --- a/ext/win32/lib/win32/registry.rb +++ b/ext/win32/lib/win32/registry.rb @@ -667,14 +667,14 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr # # Read a registry value named name and return its value data. - # The class of value is same as #read method returns. + # The class of the value is the same as the #read method returns. # # If the value type is REG_EXPAND_SZ, returns value data whose environment # variables are replaced. # If the value type is neither REG_SZ, REG_MULTI_SZ, REG_DWORD, # REG_DWORD_BIG_ENDIAN, nor REG_QWORD, TypeError is raised. # - # The meaning of rtype is same as #read method. + # The meaning of rtype is the same as for the #read method. # def [](name, *rtype) type, data = read(name, *rtype) |