summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-11 02:56:23 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-11 02:56:23 +0000
commitd5f479ca7e4c5809b42050a467116484bc33c438 (patch)
tree9529691b83ec365b40763d682f5c81d081b1d744
parentd311b7d0eb1e973c8d143f03e66ab72588f57a2a (diff)
* string.c: Fix documentation for String#slice
[ruby-core:70298][Bug #11427] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--string.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 897f8d7db6..9ad990dfa6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 11 11:54:13 2015 Alexey Lipnyagov <liptonshmidt@gmail.com>
+
+ * string.c: Fix documentation for String#slice
+ [ruby-core:70298][Bug #11427]
+
Tue Aug 11 11:53:28 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (superclass): make superclass rule optional and allow
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