summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-09 09:35:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-09 09:35:27 +0000
commit140e1f0b15bc995b45caff0ac62af960d52b4441 (patch)
tree5f7dd41326bfa223ba10a30f99e97cd4985b5e3a /string.c
parentca927d60f4e6b82c61afd1447112abc2157ff622 (diff)
* string.c: Improve documentation for String#start_with? and
String#end_with?. fixes #4652 patched by Andrew Grimm <andrew.j.grimm at gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c8
1 files changed, 4 insertions, 4 deletions
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