Skip to content

Commit 50520cc

Browse files
committed
[DOC] Missing comment markers
1 parent 262a0cc commit 50520cc

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,7 @@ dir_s_each_child(int argc, VALUE *argv, VALUE io)
33573357
* "main.rb"
33583358
*
33593359
* If no block is given, returns an enumerator.
3360-
*/
3360+
*/
33613361
static VALUE
33623362
dir_each_child_m(VALUE dir)
33633363
{

enum.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,11 +4936,11 @@ enum_compact(VALUE obj)
49364936
* - #group_by: Returns a Hash that partitions the elements into groups.
49374937
* - #partition: Returns elements partitioned into two new Arrays, as determined by the given block.
49384938
* - #slice_after: Returns a new Enumerator whose entries are a partition of +self+,
4939-
based either on a given +object+ or a given block.
4939+
* based either on a given +object+ or a given block.
49404940
* - #slice_before: Returns a new Enumerator whose entries are a partition of +self+,
4941-
based either on a given +object+ or a given block.
4941+
* based either on a given +object+ or a given block.
49424942
* - #slice_when: Returns a new Enumerator whose entries are a partition of +self+
4943-
based on the given block.
4943+
* based on the given block.
49444944
* - #chunk: Returns elements organized into chunks as specified by the given block.
49454945
* - #chunk_while: Returns elements organized into chunks as specified by the given block.
49464946
*

file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ rb_file_blockdev_p(VALUE obj, VALUE fname)
17731773
*
17741774
* Returns +true+ if +filepath+ points to a character device, +false+ otherwise.
17751775
*
1776-
* File.chardev?($stdin) # => true
1776+
* File.chardev?($stdin) # => true
17771777
* File.chardev?('t.txt') # => false
17781778
*
17791779
*/

include/ruby/internal/intern/bignum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ size_t rb_absint_size(VALUE val, int *nlz_bits_ret);
793793
* @exception rb_eTypeError `val` doesn't respond to `#to_int`.
794794
* @retval (size_t)-1 Overflowed.
795795
* @retval otherwise
796-
`((val_numbits * CHAR_BIT + word_numbits - 1) / word_numbits)`,
796+
* `((val_numbits * CHAR_BIT + word_numbits - 1) / word_numbits)`,
797797
* where val_numbits is the number of bits of `abs(val)`.
798798
* @post If `nlz_bits_ret` is not `NULL` and there is no overflow,
799799
* `(return_value * word_numbits - val_numbits)` is stored in

include/ruby/thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ typedef struct rb_internal_thread_event_hook rb_internal_thread_event_hook_t;
243243
* @return An opaque pointer to the hook, to unregister it later.
244244
* @note This functionality is a noop on Windows.
245245
* @note The callback will be called without the GVL held, except for the
246-
RESUMED event.
246+
* RESUMED event.
247247
* @warning This function MUST not be called from a thread event callback.
248248
*/
249249
rb_internal_thread_event_hook_t *rb_internal_thread_add_event_hook(

math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ rb_math_sqrt(VALUE x)
731731
* cbrt(1.0) # => 1.0
732732
* cbrt(0.0) # => 0.0
733733
* cbrt(1.0) # => 1.0
734-
cbrt(2.0) # => 1.2599210498948732
734+
* cbrt(2.0) # => 1.2599210498948732
735735
* cbrt(8.0) # => 2.0
736736
* cbrt(27.0) # => 3.0
737737
* cbrt(INFINITY) # => Infinity

numeric.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ num_negative_p(VALUE num)
999999
* - #/: Returns the quotient of +self+ and the given value.
10001000
* - #ceil: Returns the smallest number greater than or equal to +self+.
10011001
* - #coerce: Returns a 2-element array containing the given value converted to a \Float
1002-
and +self+
1002+
* and +self+
10031003
* - #divmod: Returns a 2-element array containing the quotient and remainder
10041004
* results of dividing +self+ by the given value.
10051005
* - #fdiv: Returns the \Float result of dividing +self+ by the given value.
@@ -1683,12 +1683,12 @@ rb_dbl_cmp(double a, double b)
16831683
* Examples:
16841684
*
16851685
* 2.0 <=> 2 # => 0
1686-
2.0 <=> 2.0 # => 0
1687-
2.0 <=> Rational(2, 1) # => 0
1688-
2.0 <=> Complex(2, 0) # => 0
1689-
2.0 <=> 1.9 # => 1
1690-
2.0 <=> 2.1 # => -1
1691-
2.0 <=> 'foo' # => nil
1686+
* 2.0 <=> 2.0 # => 0
1687+
* 2.0 <=> Rational(2, 1) # => 0
1688+
* 2.0 <=> Complex(2, 0) # => 0
1689+
* 2.0 <=> 1.9 # => 1
1690+
* 2.0 <=> 2.1 # => -1
1691+
* 2.0 <=> 'foo' # => nil
16921692
*
16931693
* This is the basis for the tests in the Comparable module.
16941694
*

range.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ range_overlap(VALUE range, VALUE other)
24882488
* - #%: Requires argument +n+; calls the block with each +n+-th element of +self+.
24892489
* - #each: Calls the block with each element of +self+.
24902490
* - #step: Takes optional argument +n+ (defaults to 1);
2491-
calls the block with each +n+-th element of +self+.
2491+
* calls the block with each +n+-th element of +self+.
24922492
*
24932493
* === Methods for Converting
24942494
*

string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6487,7 +6487,7 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
64876487
* Returns the result of interpreting leading characters in +self+ as a Float:
64886488
*
64896489
* '3.14159'.to_f # => 3.14159
6490-
'1.234e-2'.to_f # => 0.01234
6490+
* '1.234e-2'.to_f # => 0.01234
64916491
*
64926492
* Characters past a leading valid number (in the given +base+) are ignored:
64936493
*

0 commit comments

Comments
 (0)