summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-25 00:55:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-25 01:04:51 +0900
commit4fb71575e270092770951e6a69bf006c71fadb55 (patch)
treeec1081ce3906f18062e522a4563da6a2abe5332e /struct.c
parentdf4445128b52196488e3a6b3f7d8c04d0515979d (diff)
downloadruby-4fb71575e270092770951e6a69bf006c71fadb55.tar.gz
[DOC] Fix code markup [ci skip]
Code markup in RDoc must not be concatenated with anothr word.
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 6fc5bf1048..ad8b480d8d 100644
--- a/struct.c
+++ b/struct.c
@@ -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)