Fix spelling

This commit is contained in:
John Bampton 2024-10-09 03:36:17 +10:00 committed by Hiroshi SHIBATA
parent 65494d3cc6
commit 3fc1495c30
Notes: git 2024-10-08 22:15:02 +00:00
7 changed files with 15 additions and 15 deletions

View File

@ -1690,7 +1690,7 @@ check_order_keyword(VALUE opt)
* "\tfrom t.rb:11:in `foo'", * "\tfrom t.rb:11:in `foo'",
* "\tfrom t.rb:12:in `<main>'"] * "\tfrom t.rb:12:in `<main>'"]
* *
* An overrriding method should be careful with ANSI code enhancements; * An overriding method should be careful with ANSI code enhancements;
* see {Messages}[rdoc-ref:exceptions.md@Messages]. * see {Messages}[rdoc-ref:exceptions.md@Messages].
*/ */
@ -1774,7 +1774,7 @@ exc_message(VALUE exc)
* - +:error_highlight+. * - +:error_highlight+.
* - +:syntax_suggest+. * - +:syntax_suggest+.
* *
* An overrriding method should also be careful with ANSI code enhancements; * An overriding method should also be careful with ANSI code enhancements;
* see {Messages}[rdoc-ref:exceptions.md@Messages]. * see {Messages}[rdoc-ref:exceptions.md@Messages].
*/ */

4
file.c
View File

@ -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> | 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>'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>'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> | Whether the entity is readable by the caller's effective uid/gid. |
* | <tt>'R'</tt> | Like <tt>'r'</tt>, but uses the real uid/gid (not the effective 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>'S'</tt> | Whether the entity is a socket. |
* | <tt>'u'</tt> | Whether the entity's setuid bit is set. | * | <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> | 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>'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> | 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>'X'</tt> | Like <tt>'x'</tt>, but uses the real uid/gid (not the effective uid/git). |
* | <tt>'z'</tt> | Whether the entity exists and is of length zero. | * | <tt>'z'</tt> | Whether the entity exists and is of length zero. |
* *
* - This test operates only on the entity at `path0`, * - This test operates only on the entity at `path0`,

View File

@ -589,21 +589,21 @@ module Bundler
trace_line = backtrace.find {|l| l.include?(dsl_path) } || trace_line trace_line = backtrace.find {|l| l.include?(dsl_path) } || trace_line
return m unless trace_line return m unless trace_line
line_numer = trace_line.split(":")[1].to_i - 1 line_number = trace_line.split(":")[1].to_i - 1
return m unless line_numer return m unless line_number
lines = contents.lines.to_a lines = contents.lines.to_a
indent = " # " indent = " # "
indicator = indent.tr("#", ">") indicator = indent.tr("#", ">")
first_line = line_numer.zero? first_line = line_number.zero?
last_line = (line_numer == (lines.count - 1)) last_line = (line_number == (lines.count - 1))
m << "\n" m << "\n"
m << "#{indent}from #{trace_line.gsub(/:in.*$/, "")}\n" m << "#{indent}from #{trace_line.gsub(/:in.*$/, "")}\n"
m << "#{indent}-------------------------------------------\n" m << "#{indent}-------------------------------------------\n"
m << "#{indent}#{lines[line_numer - 1]}" unless first_line m << "#{indent}#{lines[line_number - 1]}" unless first_line
m << "#{indicator}#{lines[line_numer]}" m << "#{indicator}#{lines[line_number]}"
m << "#{indent}#{lines[line_numer + 1]}" unless last_line m << "#{indent}#{lines[line_number + 1]}" unless last_line
m << "\n" unless m.end_with?("\n") m << "\n" unless m.end_with?("\n")
m << "#{indent}-------------------------------------------\n" m << "#{indent}-------------------------------------------\n"
end end

View File

@ -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); 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 // 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') // supports both old behavior ('a'..).step(1) and new behavior ('a'..).step('a')
// Hence the additional conversion/addional checks. // Hence the additional conversion/additional checks.
const VALUE str_b = rb_check_string_type(b); const VALUE str_b = rb_check_string_type(b);
const VALUE sym_b = SYMBOL_P(b) ? rb_sym2str(b) : Qnil; const VALUE sym_b = SYMBOL_P(b) ? rb_sym2str(b) : Qnil;

View File

@ -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 * Note that member-less \Data is acceptable and might be a useful technique
* for defining several homogenous data classes, like * for defining several homogeneous data classes, like
* *
* class HTTPFetcher * class HTTPFetcher
* Response = Data.define(:body) * Response = Data.define(:body)

View File

@ -1320,7 +1320,7 @@ void
rb_ractor_sched_sleep(rb_execution_context_t *ec, rb_ractor_t *cr, rb_unblock_function_t *ubf) rb_ractor_sched_sleep(rb_execution_context_t *ec, rb_ractor_t *cr, rb_unblock_function_t *ubf)
{ {
// ractor lock of cr is acquired // ractor lock of cr is acquired
// r is sleeping statuss // r is sleeping status
rb_thread_t * volatile th = rb_ec_thread_ptr(ec); rb_thread_t * volatile th = rb_ec_thread_ptr(ec);
struct rb_thread_sched *sched = TH_SCHED(th); struct rb_thread_sched *sched = TH_SCHED(th);
cr->sync.wait.waiting_thread = th; // TODO: multi-thread cr->sync.wait.waiting_thread = th; // TODO: multi-thread

View File

@ -1113,7 +1113,7 @@ wkmap_inspect(VALUE self)
* end * end
* *
* This will result in +make_value+ returning the same object for same set of attributes * 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. * always, but the values that aren't needed anymore wouldn't be sitting in the cache forever.
*/ */
void void