[前][次][番号順一覧][スレッド一覧]

ruby-changes:44152

From: nobu <ko1@a...>
Date: Sat, 24 Sep 2016 11:28:31 +0900 (JST)
Subject: [ruby-changes:44152] nobu:r56225 (trunk): fid typos [ci skip]

nobu	2016-09-24 11:28:25 +0900 (Sat, 24 Sep 2016)

  New Revision: 56225

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56225

  Log:
    fid typos [ci skip]
    
    * fix typos, "a" before "Integer" to "an".  [Fix GH-1438]

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/enum.c
    trunk/ext/openssl/ossl_cipher.c
    trunk/ext/socket/option.c
    trunk/gc.c
    trunk/lib/mkmf.rb
    trunk/lib/rubygems/specification.rb
    trunk/numeric.c
    trunk/process.c
    trunk/test/rubygems/test_gem_specification.rb
Index: array.c
===================================================================
--- array.c	(revision 56224)
+++ array.c	(revision 56225)
@@ -5762,7 +5762,7 @@ rb_ary_sum(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/array.c#L5762
     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 https://github.com/ruby/ruby/blob/trunk/array.c#L5776
     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))
Index: process.c
===================================================================
--- process.c	(revision 56224)
+++ process.c	(revision 56225)
@@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L4188
  *
  *    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:
Index: numeric.c
===================================================================
--- numeric.c	(revision 56224)
+++ numeric.c	(revision 56225)
@@ -4112,7 +4112,7 @@ int_le(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4112
  *
  * 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.
Index: gc.c
===================================================================
--- gc.c	(revision 56224)
+++ gc.c	(revision 56225)
@@ -7239,7 +7239,7 @@ gc_stress_set(rb_objspace_t *objspace, V https://github.com/ruby/ruby/blob/trunk/gc.c#L7239
  *
  *  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
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb	(revision 56224)
+++ lib/rubygems/specification.rb	(revision 56225)
@@ -2698,7 +2698,7 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L2698
 
     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
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 56224)
+++ lib/mkmf.rb	(revision 56225)
@@ -1372,7 +1372,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1372
   # _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.
   #
Index: enum.c
===================================================================
--- enum.c	(revision 56224)
+++ enum.c	(revision 56225)
@@ -3611,7 +3611,7 @@ sum_iter(VALUE i, struct enum_sum_memo * https://github.com/ruby/ruby/blob/trunk/enum.c#L3611
                 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 ob https://github.com/ruby/ruby/blob/trunk/enum.c#L3781
         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))
Index: ext/socket/option.c
===================================================================
--- ext/socket/option.c	(revision 56224)
+++ ext/socket/option.c	(revision 56225)
@@ -404,7 +404,7 @@ sockopt_s_ipv4_multicast_loop(VALUE klas https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L404
  * 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 https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L455
  * 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) https://github.com/ruby/ruby/blob/trunk/ext/socket/option.c#L1473
 
     rb_define_method(rb_cSockOpt, "to_s", sockopt_data, 0); /* compatibility for ruby before 1.9.2 */
 }
-
Index: ext/openssl/ossl_cipher.c
===================================================================
--- ext/openssl/ossl_cipher.c	(revision 56224)
+++ ext/openssl/ossl_cipher.c	(revision 56225)
@@ -304,7 +304,7 @@ ossl_cipher_decrypt(int argc, VALUE *arg https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_cipher.c#L304
  *
  *  === 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.
Index: test/rubygems/test_gem_specification.rb
===================================================================
--- test/rubygems/test_gem_specification.rb	(revision 56224)
+++ test/rubygems/test_gem_specification.rb	(revision 56225)
@@ -3080,7 +3080,7 @@ Did you mean 'Ruby'? https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L3080
         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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56224)
+++ ChangeLog	(revision 56225)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Sep 24 11:28:22 2016  Koichi ITO  <koic.ito@g...>
+
+	* fix typos, "a" before "Integer" to "an".  [Fix GH-1438]
+
 Sat Sep 24 10:19:41 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* test/misc/test_ruby_mode.rb (assert_indent): since write-region

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]