[DOC] Fix code markup [ci skip]

Code markup in RDoc must not be concatenated with anothr word.
This commit is contained in:
Nobuyoshi Nakada 2021-10-25 00:55:45 +09:00
parent df4445128b
commit 4fb71575e2
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
3 changed files with 5 additions and 5 deletions

4
enum.c
View File

@ -3204,8 +3204,8 @@ zip_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, memoval))
* 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:

View File

@ -2250,10 +2250,10 @@ range_count(int argc, VALUE *argv, VALUE range)
*
* === 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
*

View File

@ -1245,7 +1245,7 @@ rb_struct_aref(VALUE s, VALUE idx)
* 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)