diff options
-rw-r--r-- | ext/coverage/coverage.c | 2 | ||||
-rw-r--r-- | include/ruby/internal/encoding/string.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/fl_type.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/intern/gc.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/intern/thread.h | 4 | ||||
-rw-r--r-- | include/ruby/io.h | 6 | ||||
-rw-r--r-- | include/ruby/ractor.h | 2 | ||||
-rw-r--r-- | misc/lldb_disasm.py | 4 | ||||
-rw-r--r-- | spec/ruby/core/complex/comparison_spec.rb (renamed from spec/ruby/core/complex/comparision_spec.rb) | 0 | ||||
-rw-r--r-- | spec/ruby/core/struct/values_at_spec.rb | 6 | ||||
-rw-r--r-- | spec/ruby/shared/rational/divmod.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_iseq.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_objectspace.rb | 2 | ||||
-rw-r--r-- | yjit_core.h | 2 |
14 files changed, 19 insertions, 19 deletions
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c index f948f62307..3dc2490d40 100644 --- a/ext/coverage/coverage.c +++ b/ext/coverage/coverage.c @@ -348,7 +348,7 @@ clear_me2counter_i(VALUE key, VALUE value, VALUE unused) * Coverage.suspend => nil * * Suspend the coverage measurement. - * You can use Coverage.resumt to restart the measurement. + * You can use Coverage.resume to restart the measurement. */ VALUE rb_coverage_suspend(VALUE klass) diff --git a/include/ruby/internal/encoding/string.h b/include/ruby/internal/encoding/string.h index f8ce809199..6ed7ca1c90 100644 --- a/include/ruby/internal/encoding/string.h +++ b/include/ruby/internal/encoding/string.h @@ -190,7 +190,7 @@ VALUE rb_enc_str_buf_cat(VALUE str, const char *ptr, long len, rb_encoding *enc) * In other languages, APIs like this one could be seen as the primitive * routines where encodings' "encode" feature are implemented. However in case * of Ruby this is not the primitive one. We directly manipulate encoded - * strings. Encoding conversion routines transocde an encoded string directly + * strings. Encoding conversion routines transcode an encoded string directly * to another one; not via a code point array. */ VALUE rb_enc_uint_chr(unsigned int code, rb_encoding *enc); diff --git a/include/ruby/internal/fl_type.h b/include/ruby/internal/fl_type.h index 47f054256b..08405d6f30 100644 --- a/include/ruby/internal/fl_type.h +++ b/include/ruby/internal/fl_type.h @@ -183,7 +183,7 @@ RB_GNUC_EXTENSION * @note About the `FL_USER` terminology: the "user" here does not necessarily * mean only you. For instance struct ::RString instances use these * bits to cache their encodings etc. Devs discussed about this topic, - * reached their concensus that ::RUBY_T_DATA is the only valid data + * reached their consensus that ::RUBY_T_DATA is the only valid data * structure that can use these bits; other data structures including * ::RUBY_T_OBJECT use these bits for their own purpose. See also * https://bugs.ruby-lang.org/issues/18059 diff --git a/include/ruby/internal/intern/gc.h b/include/ruby/internal/intern/gc.h index 1617a7cef6..d8e476b078 100644 --- a/include/ruby/internal/intern/gc.h +++ b/include/ruby/internal/intern/gc.h @@ -249,7 +249,7 @@ void rb_gc(void); * * @internal * - * But isn't it easier for you to call super, and let `Object#intialize_copy` + * But isn't it easier for you to call super, and let `Object#initialize_copy` * call this function instead? */ void rb_gc_copy_finalizer(VALUE dst, VALUE src); diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h index 294e552fe9..716375acd7 100644 --- a/include/ruby/internal/intern/thread.h +++ b/include/ruby/internal/intern/thread.h @@ -46,7 +46,7 @@ void rb_thread_schedule(void); * * @param[in] fd A file descriptor. * @exception rb_eIOError Closed stream. - * @exception rb_eSystemCalleError Situations like EBADF. + * @exception rb_eSystemCallError Situations like EBADF. */ int rb_thread_wait_fd(int fd); @@ -56,7 +56,7 @@ int rb_thread_wait_fd(int fd); * * @param[in] fd A file descriptor. * @exception rb_eIOError Closed stream. - * @exception rb_eSystemCalleError Situations like EBADF. + * @exception rb_eSystemCallError Situations like EBADF. */ int rb_thread_fd_writable(int fd); diff --git a/include/ruby/io.h b/include/ruby/io.h index c117087d6a..aac7846537 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -470,7 +470,7 @@ int rb_io_modestr_fmode(const char *modestr); /** * Identical to rb_io_modestr_fmode(), except it returns a mixture of `O_` - * flags. This for instnce returns `O_WRONLY | O_TRUNC | O_CREAT | O_EXCL` for + * flags. This for instance returns `O_WRONLY | O_TRUNC | O_CREAT | O_EXCL` for * `"wx"`. * * @param[in] modestr File mode, in C's string. @@ -735,8 +735,8 @@ int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding ** * class File * def initialize: ( * (String | int) path, - * ?(Strig | int) fmode, - * ?(Strig | int) perm, + * ?(String | int) fmode, + * ?(String | int) perm, * ?mode: (String | int), * ?flags: int, * ?external_encoding: (Encoding | String), diff --git a/include/ruby/ractor.h b/include/ruby/ractor.h index 687ddcadec..7811616f6d 100644 --- a/include/ruby/ractor.h +++ b/include/ruby/ractor.h @@ -145,7 +145,7 @@ bool rb_ractor_local_storage_value_lookup(rb_ractor_local_key_t key, VALUE *val) * Associates the passed value to the passed key. * * @param[in] key A ractor-local storage key. - * @param[in] val Arbitary ruby object. + * @param[in] val Arbitrary ruby object. * @post `val` corresponds to `key` in the current Ractor. */ void rb_ractor_local_storage_value_set(rb_ractor_local_key_t key, VALUE val); diff --git a/misc/lldb_disasm.py b/misc/lldb_disasm.py index b46d097910..c02af52bc4 100644 --- a/misc/lldb_disasm.py +++ b/misc/lldb_disasm.py @@ -21,7 +21,7 @@ import lldb import os import shlex -class IseqDissassembler: +class IseqDisassembler: TS_VARIABLE = b'.'[0] TS_CALLDATA = b'C'[0] TS_CDHASH = b'H'[0] @@ -219,7 +219,7 @@ class IseqDissassembler: print('error getting insn name', error) def disasm(debugger, command, result, internal_dict): - disassembler = IseqDissassembler(debugger, command, result, internal_dict) + disassembler = IseqDisassembler(debugger, command, result, internal_dict) frame = disassembler.frame if frame.IsValid(): diff --git a/spec/ruby/core/complex/comparision_spec.rb b/spec/ruby/core/complex/comparison_spec.rb index 2a437afb71..2a437afb71 100644 --- a/spec/ruby/core/complex/comparision_spec.rb +++ b/spec/ruby/core/complex/comparison_spec.rb diff --git a/spec/ruby/core/struct/values_at_spec.rb b/spec/ruby/core/struct/values_at_spec.rb index 7e517cdb4b..e7d287cba2 100644 --- a/spec/ruby/core/struct/values_at_spec.rb +++ b/spec/ruby/core/struct/values_at_spec.rb @@ -4,9 +4,9 @@ require_relative 'fixtures/classes' describe "Struct#values_at" do it "returns an array of values" do clazz = Struct.new(:name, :director, :year) - movie = clazz.new('Sympathy for Mr. Vengence', 'Chan-wook Park', 2002) - movie.values_at(0, 1).should == ['Sympathy for Mr. Vengence', 'Chan-wook Park'] - movie.values_at(0..2).should == ['Sympathy for Mr. Vengence', 'Chan-wook Park', 2002] + movie = clazz.new('Sympathy for Mr. Vengeance', 'Chan-wook Park', 2002) + movie.values_at(0, 1).should == ['Sympathy for Mr. Vengeance', 'Chan-wook Park'] + movie.values_at(0..2).should == ['Sympathy for Mr. Vengeance', 'Chan-wook Park', 2002] end it "fails when passed unsupported types" do diff --git a/spec/ruby/shared/rational/divmod.rb b/spec/ruby/shared/rational/divmod.rb index 5b319a95ff..471cd7a967 100644 --- a/spec/ruby/shared/rational/divmod.rb +++ b/spec/ruby/shared/rational/divmod.rb @@ -9,7 +9,7 @@ describe :rational_divmod_rat, shared: true do Rational(bignum_value, 4).divmod(Rational(4, 3)).should eql([1729382256910270464, Rational(0, 1)]) end - it "raises a ZeroDivisonError when passed a Rational with a numerator of 0" do + it "raises a ZeroDivisionError when passed a Rational with a numerator of 0" do -> { Rational(7, 4).divmod(Rational(0, 3)) }.should raise_error(ZeroDivisionError) end end diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 34124ae966..3a02c182aa 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -56,7 +56,7 @@ class TestISeq < Test::Unit::TestCase assert_equal [3, 4, 7, 9], lines(src) end - def test_unsupport_type + def test_unsupported_type ary = compile("p").to_a ary[9] = :foobar assert_raise_with_message(TypeError, /:foobar/) {ISeq.load(ary)} diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb index 24a190b2df..e0f9eecd11 100644 --- a/test/ruby/test_objectspace.rb +++ b/test/ruby/test_objectspace.rb @@ -219,7 +219,7 @@ End assert_same(new_obj, found[0]) end - def test_each_object_no_gabage + def test_each_object_no_garbage assert_separately([], <<-End) GC.disable eval('begin; 1.times{}; rescue; ensure; end') diff --git a/yjit_core.h b/yjit_core.h index 385bf05f29..e623ed72aa 100644 --- a/yjit_core.h +++ b/yjit_core.h @@ -158,7 +158,7 @@ typedef struct yjit_context } ctx_t; STATIC_ASSERT(yjit_ctx_size, sizeof(ctx_t) <= 32); -// Tuple of (iseq, idx) used to idenfity basic blocks +// Tuple of (iseq, idx) used to identify basic blocks typedef struct BlockId { // Instruction sequence |