From 7df8b0501a9913aae81d565e3441395348ab3b36 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 12 Oct 2006 16:07:21 +0000 Subject: * string.c (rb_str_partition): RDoc update. a patch from Mauricio Fernandez . [ruby-core:09160] * hash.c (rb_hash_compare_by_id): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 0da225d3a8..b7466f9177 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 - * sep in the string and returns the part before it, the - * sep, and the part after it. If sep is not found, + * Searches the string for sep and returns the part before + * it, the sep, and the part after it. If sep is not found, * returns str and two empty strings. * * "hello".partition("l") #=> ["he", "l", "lo"] -- cgit v1.2.3