summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--string.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index efc060ebcc..03ecc43e07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon May 9 18:33:05 2011 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c: Improve documentation for String#start_with? and
+ String#end_with?. fixes #4652
+ patched by Andrew Grimm <andrew.j.grimm at gmail.com>
+
Mon May 9 13:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
* complex.c (string_to_c_internal): support scientific notation.
diff --git a/string.c b/string.c
index 47429acefc..a6532f4df3 100644
--- a/string.c
+++ b/string.c
@@ -7139,13 +7139,13 @@ rb_str_rpartition(VALUE str, VALUE sep)
* call-seq:
* str.start_with?([prefix]+) -> true or false
*
- * Returns true if <i>str</i> starts with a prefix given.
+ * Returns true if <i>str</i> starts with one of the prefixes given.
*
* p "hello".start_with?("hell") #=> true
*
- * # returns true if one of prefix matches.
+ * # returns true if one of the prefixes matches.
* p "hello".start_with?("heaven", "hell") #=> true
- * p "hello".start_with?("heaven", "paradice") #=> false
+ * p "hello".start_with?("heaven", "paradise") #=> false
*
*
*
@@ -7171,7 +7171,7 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str)
* call-seq:
* str.end_with?([suffix]+) -> true or false
*
- * Returns true if <i>str</i> ends with a suffix given.
+ * Returns true if <i>str</i> ends with one of the suffixes given.
*/
static VALUE