diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-31 06:38:43 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-31 06:38:43 +0000 |
commit | e56c7878cfa6e0d68cfaf931ec6d106b6468f88d (patch) | |
tree | 0627fe904394788baf35995d9c43cb89d37ac151 /string.c | |
parent | 625119a348df10aeed28b203a873a27f23fbac75 (diff) | |
download | ruby-e56c7878cfa6e0d68cfaf931ec6d106b6468f88d.tar.gz |
* 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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |