diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | string.c | 17 |
2 files changed, 14 insertions, 10 deletions
@@ -1,3 +1,10 @@ +Sat Jun 9 08:09:38 2012 Eric Hodel <drbrain@segment7.net> + + * string.c (rb_str_start_with): Removed "p" from start_with? examples + to match other String method examples. [ruby-trunk - Bug #6553] + * string.c (rb_str_end_with): Updated end_with? to use code markup + instead of italic. + Sat Jun 9 07:56:03 2012 Eric Hodel <drbrain@segment7.net> * lib/benchmark.rb: Updated formatting of Benchmark documentation for @@ -7216,18 +7216,15 @@ rb_str_rpartition(VALUE str, VALUE sep) /* * call-seq: - * str.start_with?([prefix]+) -> true or false + * str.start_with?([prefixes]+) -> true or false * - * Returns true if <i>str</i> starts with one of the prefixes given. + * Returns true if +str+ starts with one of the +prefixes+ given. * - * p "hello".start_with?("hell") #=> true + * "hello".start_with?("hell") #=> true * * # returns true if one of the prefixes matches. - * p "hello".start_with?("heaven", "hell") #=> true - * p "hello".start_with?("heaven", "paradise") #=> false - * - * - * + * "hello".start_with?("heaven", "hell") #=> true + * "hello".start_with?("heaven", "paradise") #=> false */ static VALUE @@ -7248,9 +7245,9 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str) /* * call-seq: - * str.end_with?([suffix]+) -> true or false + * str.end_with?([suffixes]+) -> true or false * - * Returns true if <i>str</i> ends with one of the suffixes given. + * Returns true if +str+ ends with one of the +suffixes+ given. */ static VALUE |