ruby-changes:39449
From: hsbt <ko1@a...>
Date: Tue, 11 Aug 2015 11:56:40 +0900 (JST)
Subject: [ruby-changes:39449] hsbt:r51530 (trunk): * string.c: Fix documentation for String#slice
hsbt 2015-08-11 11:56:23 +0900 (Tue, 11 Aug 2015) New Revision: 51530 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51530 Log: * string.c: Fix documentation for String#slice [ruby-core:70298][Bug #11427] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51529) +++ ChangeLog (revision 51530) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Aug 11 11:54:13 2015 Alexey Lipnyagov <liptonshmidt@g...> + + * string.c: Fix documentation for String#slice + [ruby-core:70298][Bug #11427] + Tue Aug 11 11:53:28 2015 Nobuyoshi Nakada <nobu@r...> * parse.y (superclass): make superclass rule optional and allow Index: string.c =================================================================== --- string.c (revision 51529) +++ string.c (revision 51530) @@ -3788,7 +3788,7 @@ rb_str_aref(VALUE str, VALUE indx) https://github.com/ruby/ruby/blob/trunk/string.c#L3788 * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/