From c47f24a519a0f6cdbd4417ef32eea3f64069d180 Mon Sep 17 00:00:00 2001 From: Andrew Grimm Date: Sun, 8 May 2011 22:27:31 +1000 Subject: [PATCH] Improve documentation for String#start_with? and String#end_with? . --- string.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/string.c b/string.c index 47429ac..a6532f4 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 str starts with a prefix given. + * Returns true if str 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 str ends with a suffix given. + * Returns true if str ends with one of the suffixes given. */ static VALUE -- 1.6.6