diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 23:09:56 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 23:09:56 +0000 |
commit | 9fa6147b9cef00aa1fad47372aad6c8b237ad21f (patch) | |
tree | 3fd3b9d166369b453b76dde96c62be70855912a9 | |
parent | b2b93d4be1515575e4c70f52d804369f3d6fd8ff (diff) |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |