Update string.rb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
This commit is contained in:
Burdette Lamar 2025-05-21 12:34:59 -05:00 committed by Peter Zhu
parent 3403055d13
commit b080aabb22
Notes: git 2025-05-22 14:18:00 +00:00

View File

@ -342,7 +342,7 @@
#
# - #=~: Returns the index of the first substring that matches a given
# Regexp or other object; returns +nil+ if no match is found.
# - #byteindex: Returns the byte indexof the first occurrence of a given substring.
# - #byteindex: Returns the byte index of the first occurrence of a given substring.
# - #index: Returns the index of the _first_ occurrence of a given substring;
# returns +nil+ if none found.
# - #rindex: Returns the index of the _last_ occurrence of a given substring;