This commit is contained in:
Nobuyoshi Nakada 2023-09-27 16:18:05 +09:00
Родитель 262a0cc868
Коммит 50520cc193
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3582D74E1FEE4465
9 изменённых файлов: 17 добавлений и 17 удалений

2
dir.c
Просмотреть файл

@ -3357,7 +3357,7 @@ dir_s_each_child(int argc, VALUE *argv, VALUE io)
* "main.rb"
*
* If no block is given, returns an enumerator.
*/
*/
static VALUE
dir_each_child_m(VALUE dir)
{

6
enum.c
Просмотреть файл

@ -4936,11 +4936,11 @@ enum_compact(VALUE obj)
* - #group_by: Returns a Hash that partitions the elements into groups.
* - #partition: Returns elements partitioned into two new Arrays, as determined by the given block.
* - #slice_after: Returns a new Enumerator whose entries are a partition of +self+,
based either on a given +object+ or a given block.
* based either on a given +object+ or a given block.
* - #slice_before: Returns a new Enumerator whose entries are a partition of +self+,
based either on a given +object+ or a given block.
* based either on a given +object+ or a given block.
* - #slice_when: Returns a new Enumerator whose entries are a partition of +self+
based on the given block.
* based on the given block.
* - #chunk: Returns elements organized into chunks as specified by the given block.
* - #chunk_while: Returns elements organized into chunks as specified by the given block.
*

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

@ -1773,7 +1773,7 @@ rb_file_blockdev_p(VALUE obj, VALUE fname)
*
* Returns +true+ if +filepath+ points to a character device, +false+ otherwise.
*
* File.chardev?($stdin) # => true
* File.chardev?($stdin) # => true
* File.chardev?('t.txt') # => false
*
*/

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

@ -793,7 +793,7 @@ size_t rb_absint_size(VALUE val, int *nlz_bits_ret);
* @exception rb_eTypeError `val` doesn't respond to `#to_int`.
* @retval (size_t)-1 Overflowed.
* @retval otherwise
`((val_numbits * CHAR_BIT + word_numbits - 1) / word_numbits)`,
* `((val_numbits * CHAR_BIT + word_numbits - 1) / word_numbits)`,
* where val_numbits is the number of bits of `abs(val)`.
* @post If `nlz_bits_ret` is not `NULL` and there is no overflow,
* `(return_value * word_numbits - val_numbits)` is stored in

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

@ -243,7 +243,7 @@ typedef struct rb_internal_thread_event_hook rb_internal_thread_event_hook_t;
* @return An opaque pointer to the hook, to unregister it later.
* @note This functionality is a noop on Windows.
* @note The callback will be called without the GVL held, except for the
RESUMED event.
* RESUMED event.
* @warning This function MUST not be called from a thread event callback.
*/
rb_internal_thread_event_hook_t *rb_internal_thread_add_event_hook(

2
math.c
Просмотреть файл

@ -731,7 +731,7 @@ rb_math_sqrt(VALUE x)
* cbrt(1.0) # => 1.0
* cbrt(0.0) # => 0.0
* cbrt(1.0) # => 1.0
cbrt(2.0) # => 1.2599210498948732
* cbrt(2.0) # => 1.2599210498948732
* cbrt(8.0) # => 2.0
* cbrt(27.0) # => 3.0
* cbrt(INFINITY) # => Infinity

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

@ -999,7 +999,7 @@ num_negative_p(VALUE num)
* - #/: Returns the quotient of +self+ and the given value.
* - #ceil: Returns the smallest number greater than or equal to +self+.
* - #coerce: Returns a 2-element array containing the given value converted to a \Float
and +self+
* and +self+
* - #divmod: Returns a 2-element array containing the quotient and remainder
* results of dividing +self+ by the given value.
* - #fdiv: Returns the \Float result of dividing +self+ by the given value.
@ -1683,12 +1683,12 @@ rb_dbl_cmp(double a, double b)
* Examples:
*
* 2.0 <=> 2 # => 0
2.0 <=> 2.0 # => 0
2.0 <=> Rational(2, 1) # => 0
2.0 <=> Complex(2, 0) # => 0
2.0 <=> 1.9 # => 1
2.0 <=> 2.1 # => -1
2.0 <=> 'foo' # => nil
* 2.0 <=> 2.0 # => 0
* 2.0 <=> Rational(2, 1) # => 0
* 2.0 <=> Complex(2, 0) # => 0
* 2.0 <=> 1.9 # => 1
* 2.0 <=> 2.1 # => -1
* 2.0 <=> 'foo' # => nil
*
* This is the basis for the tests in the Comparable module.
*

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

@ -2488,7 +2488,7 @@ range_overlap(VALUE range, VALUE other)
* - #%: Requires argument +n+; calls the block with each +n+-th element of +self+.
* - #each: Calls the block with each element of +self+.
* - #step: Takes optional argument +n+ (defaults to 1);
calls the block with each +n+-th element of +self+.
* calls the block with each +n+-th element of +self+.
*
* === Methods for Converting
*

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

@ -6487,7 +6487,7 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
* Returns the result of interpreting leading characters in +self+ as a Float:
*
* '3.14159'.to_f # => 3.14159
'1.234e-2'.to_f # => 0.01234
* '1.234e-2'.to_f # => 0.01234
*
* Characters past a leading valid number (in the given +base+) are ignored:
*