summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <[email protected]>2025-05-14 13:34:09 -0500
committerGitHub <[email protected]>2025-05-14 14:34:09 -0400
commitb00a33960310f6ce8d578258243c2a1df4d6e248 (patch)
treec147f9358fae5cd660d95703153a407cb3a426e4 /string.c
parent1f72512b03292e4e2bfe90a3d2c87ac6dd3f0a3d (diff)
[DOC] Tweaks for String#[] (#13335)
Notes
Notes: Merged-By: peterzhu2118 <[email protected]>
Diffstat (limited to 'string.c')
-rw-r--r--string.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/string.c b/string.c
index a1beb6ee89..0f5b5ca955 100644
--- a/string.c
+++ b/string.c
@@ -6092,16 +6092,16 @@ rb_str_aref(VALUE str, VALUE indx)
/*
* call-seq:
- * string[index] -> new_string or nil
- * string[start, length] -> new_string or nil
- * string[range] -> new_string or nil
- * string[regexp, capture = 0] -> new_string or nil
- * string[substring] -> new_string or nil
+ * self[index] -> new_string or nil
+ * self[start, length] -> new_string or nil
+ * self[range] -> new_string or nil
+ * self[regexp, capture = 0] -> new_string or nil
+ * self[substring] -> new_string or nil
*
* Returns the substring of +self+ specified by the arguments.
* See examples at {String Slices}[rdoc-ref:String@String+Slices].
*
- *
+ * Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
*/
static VALUE