summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dir.c2
-rw-r--r--enum.c6
-rw-r--r--file.c2
-rw-r--r--include/ruby/internal/intern/bignum.h2
-rw-r--r--include/ruby/thread.h2
-rw-r--r--math.c2
-rw-r--r--numeric.c14
-rw-r--r--range.c2
-rw-r--r--string.c2
9 files changed, 17 insertions, 17 deletions
diff --git a/dir.c b/dir.c
index 4dbdc44e8a..9c9f594a78 100644
--- a/dir.c
+++ b/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)
{
diff --git a/enum.c b/enum.c
index 355170cc3e..7f15836ba8 100644
--- a/enum.c
+++ b/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.
*
diff --git a/file.c b/file.c
index 6327b1cf94..1b52621928 100644
--- a/file.c
+++ b/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
*
*/
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(
diff --git a/math.c b/math.c
index 6cef826812..2394fe9f58 100644
--- a/math.c
+++ b/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
diff --git a/numeric.c b/numeric.c
index 82fac8320f..82967502e6 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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.
*
diff --git a/range.c b/range.c
index 199d1056db..d0e0c4c1af 100644
--- a/range.c
+++ b/range.c
@@ -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
*
diff --git a/string.c b/string.c
index 18d03dc72e..9f4a345726 100644
--- a/string.c
+++ b/string.c
@@ -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:
*