aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
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 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
- * <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"]