aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 427e3aa8db..f2a9b335fb 100644
--- a/string.c
+++ b/string.c
@@ -3788,7 +3788,7 @@ rb_str_aref(VALUE str, VALUE indx)
* Element Reference --- If passed a single +index+, returns a substring of
* one character at that index. If passed a +start+ index and a +length+,
* returns a substring containing +length+ characters starting at the
- * +index+. If passed a +range+, its beginning and end are interpreted as
+ * +start+ index. If passed a +range+, its beginning and end are interpreted as
* offsets delimiting the substring to be returned.
*
* In these three cases, if an index is negative, it is counted from the end