diff options
-rw-r--r-- | dir.c | 2 | ||||
-rw-r--r-- | enum.c | 6 | ||||
-rw-r--r-- | file.c | 2 | ||||
-rw-r--r-- | include/ruby/internal/intern/bignum.h | 2 | ||||
-rw-r--r-- | include/ruby/thread.h | 2 | ||||
-rw-r--r-- | math.c | 2 | ||||
-rw-r--r-- | numeric.c | 14 | ||||
-rw-r--r-- | range.c | 2 | ||||
-rw-r--r-- | string.c | 2 |
9 files changed, 17 insertions, 17 deletions
@@ -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) { @@ -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. * @@ -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 * */ diff --git a/include/ruby/internal/intern/bignum.h b/include/ruby/internal/intern/bignum.h index 43d68018de..4ba48264fa 100644 --- a/include/ruby/internal/intern/bignum.h +++ b/include/ruby/internal/intern/bignum.h @@ -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 diff --git a/include/ruby/thread.h b/include/ruby/thread.h index 3753a4c06a..d6a543af91 100644 --- a/include/ruby/thread.h +++ b/include/ruby/thread.h @@ -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( @@ -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: * |