summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 23:09:56 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 23:09:56 +0000
commit9fa6147b9cef00aa1fad47372aad6c8b237ad21f (patch)
tree3fd3b9d166369b453b76dde96c62be70855912a9 /string.c
parentb2b93d4be1515575e4c70f52d804369f3d6fd8ff (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
Diffstat (limited to 'string.c')
-rw-r--r--string.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/string.c b/string.c
index a18eb5777a..7e74f01a5a 100644
--- a/string.c
+++ b/string.c
@@ -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