aboutsummaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2022-02-06 09:44:40 -0600
committerGitHub <noreply@github.com>2022-02-06 09:44:40 -0600
commita07fa198a690054e793faec2d09a87ebabc1c484 (patch)
treefa94ed3de77ae3d8d96fa7275273083aa8176ff7 /struct.c
parent893b0fd723e3d38ca4616f761e390a2cd5c5cc31 (diff)
downloadruby-a07fa198a690054e793faec2d09a87ebabc1c484.tar.gz
Improve links to labels in string.c and struct.c (#5531)
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/struct.c b/struct.c
index 1bc9800389..5f7899d059 100644
--- a/struct.c
+++ b/struct.c
@@ -1169,7 +1169,7 @@ invalid_struct_pos(VALUE s, VALUE idx)
*
* With integer argument +n+ given, returns <tt>self.values[n]</tt>
* if +n+ is in range;
- * see {Array Indexes}[Array.html#class-Array-label-Array+Indexes]:
+ * see Array@Array+Indexes:
*
* joe[2] # => 12345
* joe[-2] # => "123 Maple, Anytown NC"
@@ -1205,7 +1205,7 @@ rb_struct_aref(VALUE s, VALUE idx)
*
* With integer argument +n+ given, assigns the given +value+
* to the +n+-th member if +n+ is in range;
- * see {Array Indexes}[Array.html#class-Array-label-Array+Indexes]:
+ * see Array@Array+Indexes:
*
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe[2] = 54321 # => 54321
@@ -1267,7 +1267,7 @@ struct_entry(VALUE s, long n)
* joe.values_at(0, -3) # => ["Joe Smith", "Joe Smith"]
*
* Raises IndexError if any of +integers+ is out of range;
- * see {Array Indexes}[Array.html#class-Array-label-Array+Indexes].
+ * see Array@Array+Indexes.
*
* With integer range argument +integer_range+ given,
* returns an array containing each value given by the elements of the range;
@@ -1280,7 +1280,7 @@ struct_entry(VALUE s, long n)
* joe.values_at(1..4) # => ["123 Maple, Anytown NC", 12345, nil, nil]
*
* Raises RangeError if any element of the range is negative and out of range;
- * see {Array Indexes}[Array.html#class-Array-label-Array+Indexes].
+ * see Array@Array+Indexes.
*
*/