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

ruby-changes:65958

From: Ryuta <ko1@a...>
Date: Mon, 26 Apr 2021 10:07:54 +0900 (JST)
Subject: [ruby-changes:65958] 33f2ff3bab (master): Fix some typos by spell checker

https://git.ruby-lang.org/ruby.git/commit/?id=33f2ff3bab

From 33f2ff3babb7054f3df1efa25c1285e09613d7b8 Mon Sep 17 00:00:00 2001
From: Ryuta Kamizono <kamipo@g...>
Date: Mon, 26 Apr 2021 00:10:39 +0900
Subject: Fix some typos by spell checker

---
 cont.c                                 |  4 ++--
 debug_counter.h                        |  4 ++--
 doc/extension.rdoc                     |  2 +-
 ext/digest/sha2/sha2.c                 |  2 +-
 ext/nkf/nkf-utf8/nkf.c                 |  2 +-
 ext/nkf/nkf.c                          |  2 +-
 ext/win32/lib/win32/sspi.rb            |  2 +-
 ext/win32ole/sample/xml.rb             | 12 ++++++------
 ext/win32ole/win32ole_type.c           |  2 +-
 ext/win32ole/win32ole_variant.c        |  2 +-
 gc.c                                   |  4 ++--
 include/ruby/backward/2/stdarg.h       |  2 +-
 include/ruby/internal/attr/cold.h      |  2 +-
 include/ruby/internal/compiler_since.h |  4 ++--
 include/ruby/internal/core.h           |  2 +-
 include/ruby/internal/warning_push.h   |  2 +-
 internal/warnings.h                    |  2 +-
 memory_view.c                          |  2 +-
 ractor.c                               |  4 ++--
 ractor.rb                              |  6 +++---
 test/objspace/test_objspace.rb         |  2 +-
 test/open-uri/test_open-uri.rb         |  2 +-
 test/ruby/test_econv.rb                |  2 +-
 transcode.c                            |  2 +-
 24 files changed, 36 insertions(+), 36 deletions(-)

diff --git a/cont.c b/cont.c
index bdd3085..35007ca 100644
--- a/cont.c
+++ b/cont.c
@@ -436,7 +436,7 @@ fiber_pool_allocate_memory(size_t * count, size_t stride) https://github.com/ruby/ruby/blob/trunk/cont.c#L436
 #if defined(MADV_FREE_REUSE)
             // On Mac MADV_FREE_REUSE is necessary for the task_info api
             // to keep the accounting accurate as possible when a page is marked as reusable
-            // it can possibly not occuring at first call thus re-iterating if necessary.
+            // it can possibly not occurring at first call thus re-iterating if necessary.
             while (madvise(base, (*count)*stride, MADV_FREE_REUSE) == -1 && errno == EAGAIN);
 #endif
             return base;
@@ -657,7 +657,7 @@ fiber_pool_stack_free(struct fiber_pool_stack * stack) https://github.com/ruby/ruby/blob/trunk/cont.c#L657
 #elif defined(MADV_FREE_REUSABLE)
     // Acknowledge the kernel down to the task info api we make this
     // page reusable for future use.
-    // As for MADV_FREE_REUSE below we ensure in the rare occassions the task was not
+    // As for MADV_FREE_REUSE below we ensure in the rare occasions the task was not
     // completed at the time of the call to re-iterate.
     while (madvise(base, size, MADV_FREE_REUSABLE) == -1 && errno == EAGAIN);
 #elif defined(MADV_FREE)
diff --git a/debug_counter.h b/debug_counter.h
index 3c20821..9452f4c 100644
--- a/debug_counter.h
+++ b/debug_counter.h
@@ -46,10 +46,10 @@ RB_DEBUG_COUNTER(cc_not_found_in_ccs)  // count for CC lookup success in CCS https://github.com/ruby/ruby/blob/trunk/debug_counter.h#L46
 RB_DEBUG_COUNTER(cc_ent_invalidate) // count for invalidating cc (cc->klass = 0)
 RB_DEBUG_COUNTER(cc_cme_invalidate) // count for invalidating CME
 
-RB_DEBUG_COUNTER(cc_invalidate_leaf)          // count for invalidating klass if klass has no-sublcasses
+RB_DEBUG_COUNTER(cc_invalidate_leaf)          // count for invalidating klass if klass has no-subclasses
 RB_DEBUG_COUNTER(cc_invalidate_leaf_ccs)      //                        corresponding CCS
 RB_DEBUG_COUNTER(cc_invalidate_leaf_callable) //                        complimented cache (no-subclasses)
-RB_DEBUG_COUNTER(cc_invalidate_tree)          // count for invalidating klass if klass has sublcasses
+RB_DEBUG_COUNTER(cc_invalidate_tree)          // count for invalidating klass if klass has subclasses
 RB_DEBUG_COUNTER(cc_invalidate_tree_cme)      //                        cme if cme is found in this class or superclasses
 RB_DEBUG_COUNTER(cc_invalidate_tree_callable) //                        complimented cache (subclasses)
 RB_DEBUG_COUNTER(cc_invalidate_negative)      // count for invalidating negative cache
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index c33dea2..f8e0a1e 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -2127,7 +2127,7 @@ To make "Ractor-safe" C extension, we need to check the following points: https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc#L2127
 (1) Do not share unshareable objects between ractors
 
 For example, C's global variable can lead sharing an unshareable objects
-betwee ractors.
+between ractors.
 
   VALUE g_var;
   VALUE set(VALUE self, VALUE v){ return g_var = v; }
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c
index c86eab3..f55de33 100644
--- a/ext/digest/sha2/sha2.c
+++ b/ext/digest/sha2/sha2.c
@@ -94,7 +94,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/sha2/sha2.c#L94
 
 /*
  * Define the followingsha2_* types to types of the correct length on
- * the native archtecture.   Most BSD systems and Linux define u_intXX_t
+ * the native architecture.  Most BSD systems and Linux define u_intXX_t
  * types.  Machines with very recent ANSI C headers, can use the
  * uintXX_t definintions from inttypes.h by defining SHA2_USE_INTTYPES_H
  * during compile or in the sha.h header file.
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c
index f797252..08b372f 100644
--- a/ext/nkf/nkf-utf8/nkf.c
+++ b/ext/nkf/nkf-utf8/nkf.c
@@ -6787,7 +6787,7 @@ options(unsigned char *cp) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L6787
 	case 'S':   /* Shift_JIS input */
 	    input_encoding = nkf_enc_from_index(SHIFT_JIS);
 	    continue;
-	case 'Z':   /* Convert X0208 alphabet to asii */
+	case 'Z':   /* Convert X0208 alphabet to ascii */
 	    /* alpha_f
 	       bit:0   Convert JIS X 0208 Alphabet to ASCII
 	       bit:1   Convert Kankaku to one space
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index 37717e4..76f7648 100644
--- a/ext/nkf/nkf.c
+++ b/ext/nkf/nkf.c
@@ -458,7 +458,7 @@ rb_nkf_guess(VALUE obj, VALUE src) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf.c#L458
  *  with this and -x option, nkf can be used as UTF converter.
  *  (In other words, without this and -x option, nkf doesn't save some characters)
  *
- *  When nkf convert string which related to path, you should use this opion.
+ *  When nkf convert string which related to path, you should use this option.
  *
  *  === --cap-input
  *
diff --git a/ext/win32/lib/win32/sspi.rb b/ext/win32/lib/win32/sspi.rb
index a73819f2..20205fd 100644
--- a/ext/win32/lib/win32/sspi.rb
+++ b/ext/win32/lib/win32/sspi.rb
@@ -223,7 +223,7 @@ module Win32 https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/win32/sspi.rb#L223
       B64_TOKEN_PREFIX = ["NTLMSSP"].pack("m").delete("=\n")
 
       # Given a connection and a request path, performs authentication as the current user and returns
-      # the response from a GET request. The connnection should be a Net::HTTP object, and it should
+      # the response from a GET request. The connection should be a Net::HTTP object, and it should
       # have been constructed using the Net::HTTP.Proxy method, but anything that responds to "get" will work.
       # If a user and domain are given, will authenticate as the given user.
       # Returns the response received from the get method (usually Net::HTTPResponse)
diff --git a/ext/win32ole/sample/xml.rb b/ext/win32ole/sample/xml.rb
index 36c3db3..5a239c9 100644
--- a/ext/win32ole/sample/xml.rb
+++ b/ext/win32ole/sample/xml.rb
@@ -1032,8 +1032,8 @@ module IXMLDOMDocument https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/xml.rb#L1032
   end
 
   # VOID save
-  # save the document to a specified desination
-  #   VARIANT arg0 --- desination [IN]
+  # save the document to a specified destination
+  #   VARIANT arg0 --- destination [IN]
   def save(arg0)
     ret = _invoke(64, [arg0], [VT_VARIANT])
     @lastargs = WIN32OLE::ARGV
@@ -6224,8 +6224,8 @@ class Microsoft_XMLDOM_1_0 # DOMDocument https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/xml.rb#L6224
   end
 
   # VOID save
-  # save the document to a specified desination
-  #   VARIANT arg0 --- desination [IN]
+  # save the document to a specified destination
+  #   VARIANT arg0 --- destination [IN]
   def save(arg0)
     ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
     @lastargs = WIN32OLE::ARGV
@@ -6831,8 +6831,8 @@ class Microsoft_FreeThreadedXMLDOM_1_0 # DOMFreeThreadedDocument https://github.com/ruby/ruby/blob/trunk/ext/win32ole/sample/xml.rb#L6831
   end
 
   # VOID save
-  # save the document to a specified desination
-  #   VARIANT arg0 --- desination [IN]
+  # save the document to a specified destination
+  #   VARIANT arg0 --- destination [IN]
   def save(arg0)
     ret = @dispatch._invoke(64, [arg0], [VT_VARIANT])
     @lastargs = WIN32OLE::ARGV
diff --git a/ext/win32ole/win32ole_type.c b/ext/win32ole/win32ole_type.c
index fa39bf3..48dbc9d 100644
--- a/ext/win32ole/win32ole_type.c
+++ b/ext/win32ole/win32ole_type.c
@@ -56,7 +56,7 @@ static const rb_data_type_t oletype_datatype = { https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_type.c#L56
 /*
  * Document-class: WIN32OLE_TYPE
  *
- *   <code>WIN32OLE_TYPE</code> objects represent OLE type libarary information.
+ *   <code>WIN32OLE_TYPE</code> objects represent OLE type library information.
  */
 
 static void
diff --git a/ext/win32ole/win32ole_variant.c b/ext/win32ole/win32ole_variant.c
index 93f0636..5ab2966 100644
--- a/ext/win32ole/win32ole_variant.c
+++ b/ext/win32ole/win32ole_variant.c
@@ -371,7 +371,7 @@ check_type_val2variant(VALUE val) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_variant.c#L371
  *   Win32OLE converts Ruby object into OLE variant automatically when
  *   invoking OLE methods. If OLE method requires the argument which is
  *   different from the variant by automatic conversion of Win32OLE, you
- *   can convert the specfied variant type by usin (... truncated)

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

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