summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 03:14:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 03:14:57 +0000
commit7933bf76e9f5986f763241a1721ed91acb43c197 (patch)
tree4bd9ac60c9debecac591c37ff93d4c7732828fe4 /string.c
parent692637213788de09f6391b760032b94a71ee6bcf (diff)
downloadruby-7933bf76e9f5986f763241a1721ed91acb43c197.tar.gz
ruby-7933bf76e9f5986f763241a1721ed91acb43c197.tar.xz
ruby-7933bf76e9f5986f763241a1721ed91acb43c197.zip
Revert r11453
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/string.c b/string.c
index 647c8fbad..fb8afdbed 100644
--- a/string.c
+++ b/string.c
@@ -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