summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--array.c4
-rw-r--r--enum.c4
-rw-r--r--ext/openssl/ossl_cipher.c2
-rw-r--r--ext/socket/option.c5
-rw-r--r--gc.c2
-rw-r--r--lib/mkmf.rb2
-rw-r--r--lib/rubygems/specification.rb2
-rw-r--r--numeric.c2
-rw-r--r--process.c2
-rw-r--r--test/rubygems/test_gem_specification.rb2
11 files changed, 17 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 9872c68..9f0cf4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Sep 24 11:28:22 2016 Koichi ITO <koic.ito@gmail.com>
+
+ * fix typos, "a" before "Integer" to "an". [Fix GH-1438]
+
Sat Sep 24 10:19:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/misc/test_ruby_mode.rb (assert_indent): since write-region
diff --git a/array.c b/array.c
index 4e60177..8d0098c 100644
--- a/array.c
+++ b/array.c
@@ -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))
diff --git a/enum.c b/enum.c
index 487ee55..84f6a6f 100644
--- a/enum.c
+++ b/enum.c
@@ -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 f1f3459..57bc3cf 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 a823ec7..4c75fe0 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 */
}
-
diff --git a/gc.c b/gc.c
index 7705641..64af9d5 100644
--- a/gc.c
+++ b/gc.c
@@ -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 787a59d..34dbcda 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 bb912ce..5bbaec3 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
diff --git a/numeric.c b/numeric.c
index 5ef0233..770c471 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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.
diff --git a/process.c b/process.c
index eb84d8a..aaaf846 100644
--- a/process.c
+++ b/process.c
@@ -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 bbb9a7e..46828e0 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