This commit is contained in:
John Bampton 2024-10-09 03:36:17 +10:00 коммит произвёл Hiroshi SHIBATA
Родитель 65494d3cc6
Коммит 3fc1495c30
7 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -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;
* An overriding 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;
* An overriding method should also be careful with ANSI code enhancements;
* see {Messages}[rdoc-ref:exceptions.md@Messages].
*/

4
file.c
Просмотреть файл

@ -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> | 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>'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>'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. |
*
* - 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
line_number = trace_line.split(":")[1].to_i - 1
return m unless line_number
lines = contents.lines.to_a
indent = " # "
indicator = indent.tr("#", ">")
first_line = line_numer.zero?
last_line = (line_numer == (lines.count - 1))
first_line = line_number.zero?
last_line = (line_number == (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 << "#{indent}#{lines[line_number - 1]}" unless first_line
m << "#{indicator}#{lines[line_number]}"
m << "#{indent}#{lines[line_number + 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.
// Hence the additional conversion/additional 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
* for defining several homogeneous 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
// r is sleeping status
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.
* always, but the values that aren't needed anymore wouldn't be sitting in the cache forever.
*/
void