summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 02:51:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-03 02:51:44 +0000
commit692637213788de09f6391b760032b94a71ee6bcf (patch)
treea5fba77962138de697ff831922e2b54e167bc8f3 /string.c
parentd9daecd9d55d0681e16c000ae38a5f147241006c (diff)
downloadruby-692637213788de09f6391b760032b94a71ee6bcf.tar.gz
ruby-692637213788de09f6391b760032b94a71ee6bcf.tar.xz
ruby-692637213788de09f6391b760032b94a71ee6bcf.zip
* io.c (ruby_dup): start GC on ENOMEM as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/string.c b/string.c
index fb8afdbed..647c8fbad 100644
--- a/string.c
+++ b/string.c
@@ -1863,10 +1863,7 @@ 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. 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.
+ * deleted.
*
* string = "this is a string"
* string.slice!(2) #=> 105