diff options
author | Burdette Lamar <[email protected]> | 2025-05-21 12:34:59 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-05-22 10:17:46 -0400 |
commit | b080aabb22d01f625d940fce9c75cd35948bddee (patch) | |
tree | c04b84526de3f85aad7a31732e9739299b164bb4 | |
parent | 3403055d137e5ad14d72904148cf385848bd5dcc (diff) |
Update string.rb
Co-authored-by: Peter Zhu <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13365
-rw-r--r-- | string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |