From de0ef1a9dfd9f966ad7e667788f3e333944d959e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 28 Mar 2019 03:33:35 +0000 Subject: [DOC] fix markups [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- range.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'range.c') diff --git a/range.c b/range.c index 3f87e7e268..22cf237fc1 100644 --- a/range.c +++ b/range.c @@ -359,8 +359,7 @@ range_step_size(VALUE range, VALUE args, VALUE eobj) * * Iterates over the range, passing each nth element to the block. * If begin and end are numeric, +n+ is added for each iteration. - * Otherwise step invokes succ 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 - * inspect 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 Range 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 * s..e and * s...e literals, or with -- cgit v1.2.3