From b080aabb22d01f625d940fce9c75cd35948bddee Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Wed, 21 May 2025 12:34:59 -0500 Subject: [PATCH] Update string.rb Co-authored-by: Peter Zhu --- string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.rb b/string.rb index 4e19b13cc9..afa3c46f69 100644 --- a/string.rb +++ b/string.rb @@ -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;