diff options
author | John Bampton <[email protected]> | 2024-10-09 03:36:17 +1000 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-09 07:14:44 +0900 |
commit | 3fc1495c305bca14ab30d458e74dcc42424195d1 () | |
tree | 611e589beb7d96725b6e5d3d7cfdfb68a974514d | |
parent | 65494d3cc6fbe5b25431021ac155b7aba3a1dff3 (diff) |
Fix spelling
Notes: Merged: https://.com/ruby/ruby/pull/11835
-rw-r--r-- | error.c | 4 | ||||
-rw-r--r-- | file.c | 4 | ||||
-rw-r--r-- | lib/bundler/dsl.rb | 14 | ||||
-rw-r--r-- | range.c | 2 | ||||
-rw-r--r-- | struct.c | 2 | ||||
-rw-r--r-- | thread_pthread.c | 2 | ||||
-rw-r--r-- | weakmap.c | 2 |
7 files changed, 15 insertions, 15 deletions
@@ -1690,7 +1690,7 @@ check_order_keyword(VALUE opt) * "\tfrom t.rb:11:in `foo'", * "\tfrom t.rb:12:in `<main>'"] * - * An overrriding method should be careful with ANSI code enhancements; * see {Messages}[rdoc-ref:exceptions.md@Messages]. */ @@ -1774,7 +1774,7 @@ exc_message(VALUE exc) * - +:error_highlight+. * - +:syntax_suggest+. * - * An overrriding method should also be careful with ANSI code enhancements; * see {Messages}[rdoc-ref:exceptions.md@Messages]. */ @@ -5457,14 +5457,14 @@ test_check(int n, int argc, VALUE *argv) * | <tt>'o'</tt> | Whether the entity is owned by the caller's effective uid. | * | <tt>'O'</tt> | Like <tt>'o'</tt>, but uses the real uid (not the effective uid). | * | <tt>'p'</tt> | Whether the entity is a FIFO device (named pipe). | - * | <tt>'r'</tt> | Whether the entity is readable by the caller's effecive uid/gid. | * | <tt>'R'</tt> | Like <tt>'r'</tt>, but uses the real uid/gid (not the effective uid/gid). | * | <tt>'S'</tt> | Whether the entity is a socket. | * | <tt>'u'</tt> | Whether the entity's setuid bit is set. | * | <tt>'w'</tt> | Whether the entity is writable by the caller's effective uid/gid. | * | <tt>'W'</tt> | Like <tt>'w'</tt>, but uses the real uid/gid (not the effective uid/gid). | * | <tt>'x'</tt> | Whether the entity is executable by the caller's effective uid/gid. | - * | <tt>'X'</tt> | Like <tt>'x'</tt>, but uses the real uid/gid (not the effecive uid/git). | * | <tt>'z'</tt> | Whether the entity exists and is of length zero. | * * - This test operates only on the entity at `path0`, @@ -589,21 +589,21 @@ module Bundler trace_line = backtrace.find {|l| l.include?(dsl_path) } || trace_line return m unless trace_line - line_numer = trace_line.split(":")[1].to_i - 1 - return m unless line_numer lines = contents.lines.to_a indent = " # " indicator = indent.tr("#", ">") - first_line = line_numer.zero? - last_line = (line_numer == (lines.count - 1)) m << "\n" m << "#{indent}from #{trace_line.gsub(/:in.*$/, "")}\n" m << "#{indent}-------------------------------------------\n" - m << "#{indent}#{lines[line_numer - 1]}" unless first_line - m << "#{indicator}#{lines[line_numer]}" - m << "#{indent}#{lines[line_numer + 1]}" unless last_line m << "\n" unless m.end_with?("\n") m << "#{indent}-------------------------------------------\n" end @@ -493,7 +493,7 @@ range_step(int argc, VALUE *argv, VALUE range) const VALUE e_num_p = rb_obj_is_kind_of(e, rb_cNumeric); // For backward compatibility reasons (conforming to behavior before 3.4), String/Symbol // supports both old behavior ('a'..).step(1) and new behavior ('a'..).step('a') - // Hence the additional conversion/addional checks. const VALUE str_b = rb_check_string_type(b); const VALUE sym_b = SYMBOL_P(b) ? rb_sym2str(b) : Qnil; @@ -1640,7 +1640,7 @@ rb_struct_dig(int argc, VALUE *argv, VALUE self) * * * Note that member-less \Data is acceptable and might be a useful technique - * for defining several homogenous data classes, like * * class HTTPFetcher * Response = Data.define(:body) @@ -1320,7 +1320,7 @@ void rb_ractor_sched_sleep(rb_execution_context_t *ec, rb_ractor_t *cr, rb_unblock_function_t *ubf) { // ractor lock of cr is acquired - // r is sleeping statuss rb_thread_t * volatile th = rb_ec_thread_ptr(ec); struct rb_thread_sched *sched = TH_SCHED(th); cr->sync.wait.waiting_thread = th; // TODO: multi-thread @@ -1113,7 +1113,7 @@ wkmap_inspect(VALUE self) * end * * This will result in +make_value+ returning the same object for same set of attributes - * always, but the values that aren't needed anymore woudn't be sitting in the cache forever. */ void |