summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-12 16:07:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-12 16:07:21 +0000
commit955e9538b3a0600713869d7ddb790986e706c2c1 (patch)
tree48e8d7db3c6d0c42b2079b1cab06b591691ed33e /string.c
parent52958469f2775eeb40cf96f1001798a8aa910991 (diff)
downloadruby-955e9538b3a0600713869d7ddb790986e706c2c1.tar.gz
ruby-955e9538b3a0600713869d7ddb790986e706c2c1.tar.xz
ruby-955e9538b3a0600713869d7ddb790986e706c2c1.zip
* string.c (rb_str_partition): RDoc update. a patch from
Mauricio Fernandez <mfp at acm.org>. [ruby-core:09160] * hash.c (rb_hash_compare_by_id): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/string.c b/string.c
index 0da225d3a..b7466f917 100644
--- a/string.c
+++ b/string.c
@@ -4414,13 +4414,10 @@ rb_str_center(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.partition {| obj | block } => [true_array, false_array]
* str.partition(sep) => [head, sep, tail]
*
- * If a block is given, returns two arrays of true elements and false
- * elements classified by the block evaluation. Otherwise, searches
- * <i>sep</i> in the string and returns the part before it, the
- * <i>sep</i>, and the part after it. If <i>sep</i> is not found,
+ * Searches the string for <i>sep</i> and returns the part before
+ * it, the <i>sep</i>, and the part after it. If <i>sep</i> is not found,
* returns <i>str</i> and two empty strings.
*
* "hello".partition("l") #=> ["he", "l", "lo"]