Skip to content

Commit 0cc169d

Browse files
committed
fid typos [ci skip]
* fix typos, "a" before "Integer" to "an". [Fix rubyGH-1438] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 967c013 commit 0cc169d

File tree

11 files changed

+17
-14
lines changed

11 files changed

+17
-14
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sat Sep 24 11:28:22 2016 Koichi ITO <koic.ito@gmail.com>
2+
3+
* fix typos, "a" before "Integer" to "an". [Fix GH-1438]
4+
15
Sat Sep 24 10:19:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
26

37
* test/misc/test_ruby_mode.rb (assert_indent): since write-region

array.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5762,7 +5762,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary)
57625762
if (n != 0)
57635763
v = rb_fix_plus(LONG2FIX(n), v);
57645764
if (r != Qundef) {
5765-
/* r can be a Integer when mathn is loaded */
5765+
/* r can be an Integer when mathn is loaded */
57665766
if (FIXNUM_P(r))
57675767
v = rb_fix_plus(r, v);
57685768
else if (RB_TYPE_P(r, T_BIGNUM))
@@ -5776,7 +5776,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE ary)
57765776
if (n != 0)
57775777
v = rb_fix_plus(LONG2FIX(n), v);
57785778
if (r != Qundef) {
5779-
/* r can be a Integer when mathn is loaded */
5779+
/* r can be an Integer when mathn is loaded */
57805780
if (FIXNUM_P(r))
57815781
v = rb_fix_plus(r, v);
57825782
else if (RB_TYPE_P(r, T_BIGNUM))

enum.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,7 @@ sum_iter(VALUE i, struct enum_sum_memo *memo)
36113611
n = 0;
36123612
}
36133613
if (r != Qundef) {
3614-
/* r can be a Integer when mathn is loaded */
3614+
/* r can be an Integer when mathn is loaded */
36153615
if (FIXNUM_P(r))
36163616
v = rb_fix_plus(r, v);
36173617
else if (RB_TYPE_P(r, T_BIGNUM))
@@ -3781,7 +3781,7 @@ enum_sum(int argc, VALUE* argv, VALUE obj)
37813781
if (memo.n != 0)
37823782
memo.v = rb_fix_plus(LONG2FIX(memo.n), memo.v);
37833783
if (memo.r != Qundef) {
3784-
/* r can be a Integer when mathn is loaded */
3784+
/* r can be an Integer when mathn is loaded */
37853785
if (FIXNUM_P(memo.r))
37863786
memo.v = rb_fix_plus(memo.r, memo.v);
37873787
else if (RB_TYPE_P(memo.r, T_BIGNUM))

ext/openssl/ossl_cipher.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ossl_cipher_decrypt(int argc, VALUE *argv, VALUE self)
304304
*
305305
* === Parameters
306306
* * +salt+ must be an 8 byte string if provided.
307-
* * +iterations+ is a integer with a default of 2048.
307+
* * +iterations+ is an integer with a default of 2048.
308308
* * +digest+ is a Digest object that defaults to 'MD5'
309309
*
310310
* A minimum of 1000 iterations is recommended.

ext/socket/option.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ sockopt_s_ipv4_multicast_loop(VALUE klass, VALUE value)
404404
* call-seq:
405405
* sockopt.ipv4_multicast_loop => integer
406406
*
407-
* Returns the ipv4_multicast_loop data in _sockopt_ as a integer.
407+
* Returns the ipv4_multicast_loop data in _sockopt_ as an integer.
408408
*
409409
* sockopt = Socket::Option.ipv4_multicast_loop(10)
410410
* p sockopt.ipv4_multicast_loop => 10
@@ -455,7 +455,7 @@ sockopt_s_ipv4_multicast_ttl(VALUE klass, VALUE value)
455455
* call-seq:
456456
* sockopt.ipv4_multicast_ttl => integer
457457
*
458-
* Returns the ipv4_multicast_ttl data in _sockopt_ as a integer.
458+
* Returns the ipv4_multicast_ttl data in _sockopt_ as an integer.
459459
*
460460
* sockopt = Socket::Option.ipv4_multicast_ttl(10)
461461
* p sockopt.ipv4_multicast_ttl => 10
@@ -1473,4 +1473,3 @@ rsock_init_sockopt(void)
14731473

14741474
rb_define_method(rb_cSockOpt, "to_s", sockopt_data, 0); /* compatibility for ruby before 1.9.2 */
14751475
}
1476-

gc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7239,7 +7239,7 @@ gc_stress_set(rb_objspace_t *objspace, VALUE flag)
72397239
*
72407240
* Enabling stress mode will degrade performance, it is only for debugging.
72417241
*
7242-
* flag can be true, false, or a integer bit-ORed following flags.
7242+
* flag can be true, false, or an integer bit-ORed following flags.
72437243
* 0x01:: no major GC
72447244
* 0x02:: no immediate sweep
72457245
* 0x04:: full mark after malloc/calloc/realloc

lib/mkmf.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ def check_signedness(type, headers = nil, opts = nil, &b)
13721372
# _convertible_ means actually the same type, or typedef'd from the same
13731373
# type.
13741374
#
1375-
# If the +type+ is a integer type and the _convertible_ type is found,
1375+
# If the +type+ is an integer type and the _convertible_ type is found,
13761376
# the following macros are passed as preprocessor constants to the compiler
13771377
# using the +type+ name, in uppercase.
13781378
#

lib/rubygems/specification.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2698,7 +2698,7 @@ def validate packaging = true
26982698

26992699
unless specification_version.is_a?(Integer)
27002700
raise Gem::InvalidSpecificationException,
2701-
'specification_version must be a Integer (did you mean version?)'
2701+
'specification_version must be an Integer (did you mean version?)'
27022702
end
27032703

27042704
case platform

numeric.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4112,7 +4112,7 @@ int_le(VALUE x, VALUE y)
41124112
*
41134113
* One's complement: returns a number where each bit is flipped.
41144114
*
4115-
* Inverts the bits in a integer. As Integers are conceptually infinite
4115+
* Inverts the bits in an integer. As Integers are conceptually infinite
41164116
* length, the result acts as if it had an infinite number of one
41174117
* bits to the left. In hex representations, this is displayed
41184118
* as two periods to the left of the digits.

process.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv)
41884188
*
41894189
* pid = spawn(command, :umask=>077)
41904190
*
4191-
* The :in, :out, :err, a integer, an IO and an array key specifies a redirection.
4191+
* The :in, :out, :err, an integer, an IO and an array key specifies a redirection.
41924192
* The redirection maps a file descriptor in the child process.
41934193
*
41944194
* For example, stderr can be merged into stdout as follows:

test/rubygems/test_gem_specification.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,7 @@ def test_validate_specification_version
30803080
end
30813081
end
30823082

3083-
err = 'specification_version must be a Integer (did you mean version?)'
3083+
err = 'specification_version must be an Integer (did you mean version?)'
30843084
assert_equal err, e.message
30853085
end
30863086
end

0 commit comments

Comments
 (0)