diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-24 02:28:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-24 02:28:25 +0000 |
commit | 0cc169d1de0decb3fae626a4b30297b7f4792745 (patch) | |
tree | c9ebb037e938da67a5ea9eac8215d369c6727fcd | |
parent | 967c01339126acb078e79fb9a9a618a435a27dba (diff) |
fid typos [ci skip]
* fix typos, "a" before "Integer" to "an". [Fix GH-1438]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | array.c | 4 | ||||
-rw-r--r-- | enum.c | 4 | ||||
-rw-r--r-- | ext/openssl/ossl_cipher.c | 2 | ||||
-rw-r--r-- | ext/socket/option.c | 5 | ||||
-rw-r--r-- | gc.c | 2 | ||||
-rw-r--r-- | lib/mkmf.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/specification.rb | 2 | ||||
-rw-r--r-- | numeric.c | 2 | ||||
-rw-r--r-- | process.c | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 2 |
11 files changed, 17 insertions, 14 deletions
@@ -1,3 +1,7 @@ +Sat Sep 24 11:28:22 2016 Koichi ITO <[email protected]> + + * fix typos, "a" before "Integer" to "an". [Fix GH-1438] + Sat Sep 24 10:19:41 2016 Nobuyoshi Nakada <[email protected]> * test/misc/test_ruby_mode.rb (assert_indent): since write-region @@ -5762,7 +5762,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary) if (n != 0) v = rb_fix_plus(LONG2FIX(n), v); if (r != Qundef) { - /* r can be a Integer when mathn is loaded */ + /* r can be an Integer when mathn is loaded */ if (FIXNUM_P(r)) v = rb_fix_plus(r, v); else if (RB_TYPE_P(r, T_BIGNUM)) @@ -5776,7 +5776,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary) if (n != 0) v = rb_fix_plus(LONG2FIX(n), v); if (r != Qundef) { - /* r can be a Integer when mathn is loaded */ + /* r can be an Integer when mathn is loaded */ if (FIXNUM_P(r)) v = rb_fix_plus(r, v); else if (RB_TYPE_P(r, T_BIGNUM)) @@ -3611,7 +3611,7 @@ sum_iter(VALUE i, struct enum_sum_memo *memo) n = 0; } if (r != Qundef) { - /* r can be a Integer when mathn is loaded */ + /* r can be an Integer when mathn is loaded */ if (FIXNUM_P(r)) v = rb_fix_plus(r, v); else if (RB_TYPE_P(r, T_BIGNUM)) @@ -3781,7 +3781,7 @@ enum_sum(int argc, VALUE* argv, VALUE obj) if (memo.n != 0) memo.v = rb_fix_plus(LONG2FIX(memo.n), memo.v); if (memo.r != Qundef) { - /* r can be a Integer when mathn is loaded */ + /* r can be an Integer when mathn is loaded */ if (FIXNUM_P(memo.r)) memo.v = rb_fix_plus(memo.r, memo.v); else if (RB_TYPE_P(memo.r, T_BIGNUM)) diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c index f1f3459ef2..57bc3cfa08 100644 --- a/ext/openssl/ossl_cipher.c +++ b/ext/openssl/ossl_cipher.c @@ -304,7 +304,7 @@ ossl_cipher_decrypt(int argc, VALUE *argv, VALUE self) * * === Parameters * * +salt+ must be an 8 byte string if provided. - * * +iterations+ is a integer with a default of 2048. + * * +iterations+ is an integer with a default of 2048. * * +digest+ is a Digest object that defaults to 'MD5' * * A minimum of 1000 iterations is recommended. diff --git a/ext/socket/option.c b/ext/socket/option.c index a823ec7757..4c75fe046d 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -404,7 +404,7 @@ sockopt_s_ipv4_multicast_loop(VALUE klass, VALUE value) * call-seq: * sockopt.ipv4_multicast_loop => integer * - * Returns the ipv4_multicast_loop data in _sockopt_ as a integer. + * Returns the ipv4_multicast_loop data in _sockopt_ as an integer. * * sockopt = Socket::Option.ipv4_multicast_loop(10) * p sockopt.ipv4_multicast_loop => 10 @@ -455,7 +455,7 @@ sockopt_s_ipv4_multicast_ttl(VALUE klass, VALUE value) * call-seq: * sockopt.ipv4_multicast_ttl => integer * - * Returns the ipv4_multicast_ttl data in _sockopt_ as a integer. + * Returns the ipv4_multicast_ttl data in _sockopt_ as an integer. * * sockopt = Socket::Option.ipv4_multicast_ttl(10) * p sockopt.ipv4_multicast_ttl => 10 @@ -1473,4 +1473,3 @@ rsock_init_sockopt(void) rb_define_method(rb_cSockOpt, "to_s", sockopt_data, 0); /* compatibility for ruby before 1.9.2 */ } - @@ -7239,7 +7239,7 @@ gc_stress_set(rb_objspace_t *objspace, VALUE flag) * * Enabling stress mode will degrade performance, it is only for debugging. * - * flag can be true, false, or a integer bit-ORed following flags. + * flag can be true, false, or an integer bit-ORed following flags. * 0x01:: no major GC * 0x02:: no immediate sweep * 0x04:: full mark after malloc/calloc/realloc diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 787a59d4ee..34dbcda657 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1372,7 +1372,7 @@ SRC # _convertible_ means actually the same type, or typedef'd from the same # type. # - # If the +type+ is a integer type and the _convertible_ type is found, + # If the +type+ is an integer type and the _convertible_ type is found, # the following macros are passed as preprocessor constants to the compiler # using the +type+ name, in uppercase. # diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index bb912ce24c..5bbaec3911 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -2698,7 +2698,7 @@ class Gem::Specification < Gem::BasicSpecification unless specification_version.is_a?(Integer) raise Gem::InvalidSpecificationException, - 'specification_version must be a Integer (did you mean version?)' + 'specification_version must be an Integer (did you mean version?)' end case platform @@ -4112,7 +4112,7 @@ int_le(VALUE x, VALUE y) * * One's complement: returns a number where each bit is flipped. * - * Inverts the bits in a integer. As Integers are conceptually infinite + * Inverts the bits in an integer. As Integers are conceptually infinite * length, the result acts as if it had an infinite number of one * bits to the left. In hex representations, this is displayed * as two periods to the left of the digits. @@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv) * * pid = spawn(command, :umask=>077) * - * The :in, :out, :err, a integer, an IO and an array key specifies a redirection. + * The :in, :out, :err, an integer, an IO and an array key specifies a redirection. * The redirection maps a file descriptor in the child process. * * For example, stderr can be merged into stdout as follows: diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index bbb9a7ebaa..46828e05ad 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -3080,7 +3080,7 @@ Did you mean 'Ruby'? end end - err = 'specification_version must be a Integer (did you mean version?)' + err = 'specification_version must be an Integer (did you mean version?)' assert_equal err, e.message end end |