summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-21 16:41:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-21 16:41:17 +0000
commit5872098c41959199ce891d4ea3ab3dbab6a5eaea (patch)
tree238c550ab11d416349e3304450158d941681e553 /string.c
parentef8395a82e8c7d03a7e18f8a1331da2fd52d6fa6 (diff)
downloadruby-5872098c41959199ce891d4ea3ab3dbab6a5eaea.tar.gz
ruby-5872098c41959199ce891d4ea3ab3dbab6a5eaea.tar.xz
ruby-5872098c41959199ce891d4ea3ab3dbab6a5eaea.zip
* string.c (rb_str_slice_bang): rdoc description bug fixed.
[ruby-core:09754] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11414 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 1e1fa33eb..571be9206 100644
--- a/string.c
+++ b/string.c
@@ -1935,10 +1935,7 @@ rb_str_insert(VALUE str, VALUE idx, VALUE 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