diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-03 03:14:57 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-03 03:14:57 +0000 |
commit | 46fa18da5bbcaee08a59b15a1f53b2a625c6aa7a (patch) | |
tree | 4bd9ac60c9debecac591c37ff93d4c7732828fe4 /string.c | |
parent | 4ee717dcaef27087a6a1f701b227beb45e84b8aa (diff) |
Revert r11453
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1863,7 +1863,10 @@ rb_str_insert(str, idx, str2) * str.slice!(other_str) => new_str or nil * * Deletes the specified portion from <i>str</i>, and returns the portion - * deleted. + * deleted. The forms that take a <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. * * string = "this is a string" * string.slice!(2) #=> 105 |