1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_aset_m): Documentation for String#[]= fix

Raises an IndexError if Regexp match is out of range.
  Github fixes #243 Patch by Dmtiriy Budnik


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-01-31 06:38:43 +00:00
parent 625119a348
commit e56c7878cf
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Thu Jan 31 15:39:00 2013 Zachary Scott <zachary@zacharyscott.net>
* string.c (rb_str_aset_m): Documentation for String#[]= fix
Raises an IndexError if Regexp match is out of range.
Github fixes #243 Patch by Dmtiriy Budnik
Thu Jan 31 13:54:44 2013 Shugo Maeda <shugo@ruby-lang.org>
* ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): return

View file

@ -3531,7 +3531,7 @@ rb_str_aset(VALUE str, VALUE indx, VALUE val)
* <code>Fixnum</code> will raise an <code>IndexError</code> if the value is
* out of range; the <code>Range</code> form will raise a
* <code>RangeError</code>, and the <code>Regexp</code> and <code>String</code>
* forms will silently ignore the assignment.
* will raise an <code>IndexError</code> on negative match.
*/
static VALUE