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

ruby-changes:59336

From: Nobuyoshi <ko1@a...>
Date: Fri, 20 Dec 2019 09:36:11 +0900 (JST)
Subject: [ruby-changes:59336] db16629008 (master): Fixed misspellings

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

From db166290088fb7d39d01f68b9860253893d4f1a7 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 20 Dec 2019 09:19:39 +0900
Subject: Fixed misspellings

Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.

diff --git a/basictest/test.rb b/basictest/test.rb
index 10ea28d..25a4298 100755
--- a/basictest/test.rb
+++ b/basictest/test.rb
@@ -1732,7 +1732,7 @@ a = nil https://github.com/ruby/ruby/blob/trunk/basictest/test.rb#L1732
 test_ok(defined?(a))
 test_ok(a == nil)
 
-# multiple asignment
+# multiple assignment
 a, b = 1, 2
 test_ok(a == 1 && b == 2)
 
diff --git a/compile.c b/compile.c
index 1e64004..98ee34a 100644
--- a/compile.c
+++ b/compile.c
@@ -6827,7 +6827,7 @@ delegate_call_p(const rb_iseq_t *iseq, unsigned int argc, const LINK_ANCHOR *arg https://github.com/ruby/ruby/blob/trunk/compile.c#L6827
                         }
                     }
                     else {
-                        goto fail; // level != 0 is unsupport
+                        goto fail; // level != 0 is unsupported
                     }
                 }
                 else {
diff --git a/cont.c b/cont.c
index 87f1fd0..793bce0 100644
--- a/cont.c
+++ b/cont.c
@@ -2367,7 +2367,7 @@ rb_fiber_pool_initialize(int argc, VALUE* argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/cont.c#L2367
     VALUE size = Qnil, count = Qnil, vm_stack_size = Qnil;
     struct fiber_pool * fiber_pool = NULL;
 
-    // Maybe these should be keyworkd arguments.
+    // Maybe these should be keyword arguments.
     rb_scan_args(argc, argv, "03", &size, &count, &vm_stack_size);
 
     if (NIL_P(size)) {
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 8ff17d9..226e106 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -90,7 +90,7 @@ sudo-precheck: test yes-test-testframework no-test-testframework https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L90
 install-prereq: sudo-precheck
 yes-test-all no-test-all: install
 endif
-# Cross referece needs to parse all files at once
+# Cross reference needs to parse all files at once
 love install reinstall: RDOCFLAGS = --force-update
 
 $(srcdir)/missing/des_tables.c: $(srcdir)/missing/crypt.c
diff --git a/defs/separated_version.mk b/defs/separated_version.mk
index f086f4b..72ee093 100644
--- a/defs/separated_version.mk
+++ b/defs/separated_version.mk
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/defs/separated_version.mk#L1
 # ******** FOR DEVELEPERS ONLY ********
 # Separate version.o into a shared library which varies every
-# revisions, in order to make the rest sharable.
+# revisions, in order to make the rest shareable.
 
 include $(firstword $(wildcard GNUmakefile Makefile))
 
diff --git a/doc/NEWS-2.5.0 b/doc/NEWS-2.5.0
index 221c032..c891317 100644
--- a/doc/NEWS-2.5.0
+++ b/doc/NEWS-2.5.0
@@ -68,7 +68,7 @@ with all sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/doc/NEWS-2.5.0#L68
   * File.rename releases GVL. [Feature #13951]
   * File::Stat#atime, File::Stat#mtime and File::Stat#ctime support fractional
     second timestamps on Windows 8 and later.  [Feature #13726]
-  * File::Stat#ino and File.indentical? support ReFS 128bit ino on Windows 8.1
+  * File::Stat#ino and File.identical? support ReFS 128bit ino on Windows 8.1
     and later.  [Feature #13731]
   * File.readable?, File.readable_real?, File.writable?, File.writable_real?,
     File.executable?, File.executable_real?, File.mkfifo, File.readlink,
diff --git a/doc/contributing.rdoc b/doc/contributing.rdoc
index 95e5b6d..68dda66 100644
--- a/doc/contributing.rdoc
+++ b/doc/contributing.rdoc
@@ -389,7 +389,7 @@ When you're ready to commit: https://github.com/ruby/ruby/blob/trunk/doc/contributing.rdoc#L389
 This will open your editor in which you write your commit message.
 Use the following style for commit messages:
 
-* Use a succint subject line.
+* Use a succinct subject line.
 * Include reasoning behind the change in the commit message, focusing on why
   the change is being made.
 * Refer to redmine issue (such as Fixes [Bug #1234] or Implements
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index 79d25e4..79eb96d 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -726,7 +726,7 @@ RUBY_TYPED_FREE_IMMEDIATELY :: https://github.com/ruby/ruby/blob/trunk/doc/extension.rdoc#L726
   You can specify this flag if the dfree never unlocks Ruby's
   internal lock (GVL).
 
-  If this flag is not set, Ruby defers invokation of dfree()
+  If this flag is not set, Ruby defers invocation of dfree()
   and invokes dfree() at the same time as finalizers.
 
 RUBY_TYPED_WB_PROTECTED ::
diff --git a/doc/syntax/miscellaneous.rdoc b/doc/syntax/miscellaneous.rdoc
index d5691f8..87ec059 100644
--- a/doc/syntax/miscellaneous.rdoc
+++ b/doc/syntax/miscellaneous.rdoc
@@ -13,7 +13,7 @@ most frequently used with <code>ruby -e</code>. https://github.com/ruby/ruby/blob/trunk/doc/syntax/miscellaneous.rdoc#L13
 Ruby does not require any indentation.  Typically, ruby programs are indented
 two spaces.
 
-If you run ruby with warnings enabled and have an indentation mis-match, you
+If you run ruby with warnings enabled and have an indentation mismatch, you
 will receive a warning.
 
 == +alias+
diff --git a/gc.c b/gc.c
index 0f9361a..ab7662b 100644
--- a/gc.c
+++ b/gc.c
@@ -86,7 +86,7 @@ https://github.com/ruby/ruby/blob/trunk/gc.c#L86
 #pragma intrinsic(_umul128)
 #endif
 
-/* Expecting this struct to be elminated by function inlinings */
+/* Expecting this struct to be eliminated by function inlinings */
 struct optional {
     bool left;
     size_t right;
diff --git a/include/ruby/backward/cxxanyargs.hpp b/include/ruby/backward/cxxanyargs.hpp
index a2e63f2..3585f67 100644
--- a/include/ruby/backward/cxxanyargs.hpp
+++ b/include/ruby/backward/cxxanyargs.hpp
@@ -47,7 +47,7 @@ typedef int int_type(ANYARGS); https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L47
 /// @name Hooking global variables
 /// @{
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Getter function.
@@ -63,7 +63,7 @@ rb_define_virtual_variable(const char *q, type *w, void_type *e) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L63
     ::rb_define_virtual_variable(q, r, t);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Getter function.
@@ -78,7 +78,7 @@ rb_define_virtual_variable(const char *q, rb_gvar_getter_t *w, void_type *e) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L78
     ::rb_define_virtual_variable(q, w, t);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Getter function.
@@ -93,7 +93,7 @@ rb_define_virtual_variable(const char *q, type *w, rb_gvar_setter_t *e) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L93
     ::rb_define_virtual_variable(q, r, e);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Variable storage.
@@ -110,7 +110,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, type *e, void_type *r) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L110
     ::rb_define_hooked_variable(q, w, t, y);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Variable storage.
@@ -126,7 +126,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, rb_gvar_getter_t *e, void_typ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L126
     ::rb_define_hooked_variable(q, w, e, y);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Define a function-backended global variable.
 /// @param[in]   q  Name of the variable.
 /// @param[in]   w  Variable storage.
@@ -146,7 +146,7 @@ rb_define_hooked_variable(const char *q, VALUE *w, type *e, rb_gvar_setter_t *r) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L146
 /// @name Exceptions and tag jumps
 /// @{
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Old way to implement iterators.
 /// @param[in]   q  A function that can yield.
 /// @param[in]   w  Passed to `q`.
@@ -163,7 +163,7 @@ rb_iterate(VALUE(*q)(VALUE), VALUE w, type *e, VALUE r) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L163
     return ::rb_iterate(q, w, t, r);
 }
 
-RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprected")
+RUBY_CXX_DEPRECATED("Use of ANYARGS in this function is deprecated")
 /// @brief       Call a method with a block.
 /// @param[in]   q  The self.
 /// @param[in]   w  The method.
@@ -181,7 +181,7 @@ rb_block_call(VALUE q, ID w, int e, const VALUE *r, type *t, VALUE y) https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/cxxanyargs.hpp#L181
     return ::rb_block_call(q, (... truncated)

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

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