ruby-changes:69404
From: Nobuyoshi <ko1@a...>
Date: Mon, 25 Oct 2021 01:06:40 +0900 (JST)
Subject: [ruby-changes:69404] 4fb71575e2 (master): [DOC] Fix code markup [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=4fb71575e2 From 4fb71575e270092770951e6a69bf006c71fadb55 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 25 Oct 2021 00:55:45 +0900 Subject: [DOC] Fix code markup [ci skip] Code markup in RDoc must not be concatenated with anothr word. --- enum.c | 4 ++-- range.c | 4 ++-- struct.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/enum.c b/enum.c index 3a274595f88..b54acf957ce 100644 --- a/enum.c +++ b/enum.c @@ -3204,8 +3204,8 @@ zip_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, memoval)) https://github.com/ruby/ruby/blob/trunk/enum.c#L3204 * Each nested array <tt>new_array[n]</tt> * is of size <tt>other_enums.size+1</tt>, and contains: * - * - The +n+th element of self. - * - The +n+th element of each of the +other_enums+. + * - The +n+-th element of self. + * - The +n+-th element of each of the +other_enums+. * * If all +other_enums+ and self are the same size, * all elements are included in the result, and there is no +nil+-filling: diff --git a/range.c b/range.c index 96c059b8068..e49dd2cf355 100644 --- a/range.c +++ b/range.c @@ -2250,10 +2250,10 @@ range_count(int argc, VALUE *argv, VALUE range) https://github.com/ruby/ruby/blob/trunk/range.c#L2250 * * === Methods for Iterating * - * - #%:: Requires argument +n+; calls the block with each +n+th element of +self+. + * - #%:: 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/struct.c b/struct.c index 6fc5bf1048f..ad8b480d8d1 100644 --- a/struct.c +++ b/struct.c @@ -1245,7 +1245,7 @@ rb_struct_aref(VALUE s, VALUE idx) https://github.com/ruby/ruby/blob/trunk/struct.c#L1245 * Raises NameError if +name+ is not the name of a member. * * With integer argument +n+ given, assigns the given +value+ - * to the +n+th member if +n+ is in range; + * to the +n+-th member if +n+ is in range; * see {Array Indexes}[Array.html#class-Array-label-Array+Indexes]: * * joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/