diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-28 03:33:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-28 03:33:35 +0000 |
commit | de0ef1a9dfd9f966ad7e667788f3e333944d959e (patch) | |
tree | 53bbb3c3560a6f548021486afbf423e740740774 /range.c | |
parent | 832bc50768fe42f95f8dda0483f0ba1556175c9d (diff) |
[DOC] fix markups [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -359,8 +359,7 @@ range_step_size(VALUE range, VALUE args, VALUE eobj) * * Iterates over the range, passing each <code>n</code>th element to the block. * If begin and end are numeric, +n+ is added for each iteration. - * Otherwise <code>step</code> invokes <code>succ</code> to iterate through - * range elements. + * Otherwise #step invokes #succ to iterate through range elements. * * If no block is given, an enumerator is returned instead. * Especially, the enumerator is an Enumerator::ArithmeticSequence @@ -1312,9 +1311,8 @@ inspect_range(VALUE range, VALUE dummy, int recur) * call-seq: * rng.inspect -> string * - * Convert this range object to a printable form (using - * <code>inspect</code> to convert the begin and end - * objects). + * Convert this range object to a printable form (using #inspect to + * convert the begin and end objects). */ @@ -1538,7 +1536,7 @@ range_alloc(VALUE klass) return rb_struct_alloc_noinit(klass); } -/* A <code>Range</code> represents an interval---a set of values with a +/* A Range represents an interval---a set of values with a * beginning and an end. Ranges may be constructed using the * <em>s</em><code>..</code><em>e</em> and * <em>s</em><code>...</code><em>e</em> literals, or with |