summaryrefslogtreecommitdiff
path: root/string.rb
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-05-16 13:45:05 -0500
committerPeter Zhu <[email protected]>2025-05-22 10:17:46 -0400
commit3403055d137e5ad14d72904148cf385848bd5dcc ()
treef48663b4008e1edae7edbf6c2ce0990ccf248aab /string.rb
parentf18883b2954ef327eef59dec356391c2541e5dcd (diff)
[DOC] Tweaks for String#byteindex
Notes: Merged: https://.com/ruby/ruby/pull/13365
-rw-r--r--string.rb1
1 files changed, 1 insertions, 0 deletions
@@ -342,6 +342,7 @@
#
# - #=~: Returns the index of the first substring that matches a given
# Regexp or other object; returns +nil+ if no match is found.
# - #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;