From 7933bf76e9f5986f763241a1721ed91acb43c197 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 3 Jan 2007 03:14:57 +0000 Subject: Revert r11453 git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'string.c') 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 str, and returns the portion - * deleted. + * deleted. The forms that take a Fixnum will raise an + * IndexError if the value is out of range; the Range + * form will raise a RangeError, and the Regexp and + * String forms will silently ignore the assignment. * * string = "this is a string" * string.slice!(2) #=> 105 -- cgit