зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
967c013391
Коммит
0cc169d1de
|
@ -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
|
||||
|
|
4
array.c
4
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))
|
||||
|
|
4
enum.c
4
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))
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
2
gc.c
2
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
|
||||
|
|
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче