diff options
author | Burdette Lamar <[email protected]> | 2025-05-14 13:34:09 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2025-05-14 14:34:09 -0400 |
commit | b00a33960310f6ce8d578258243c2a1df4d6e248 (patch) | |
tree | c147f9358fae5cd660d95703153a407cb3a426e4 /string.c | |
parent | 1f72512b03292e4e2bfe90a3d2c87ac6dd3f0a3d (diff) |
[DOC] Tweaks for String#[] (#13335)
Notes
Notes:
Merged-By: peterzhu2118 <[email protected]>
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |