[前][次][番号順一覧][スレッド一覧]

ruby-changes:19453

From: naruse <ko1@a...>
Date: Mon, 9 May 2011 18:35:33 +0900 (JST)
Subject: [ruby-changes:19453] Ruby:r31493 (trunk): * string.c: Improve documentation for String#start_with? and

naruse	2011-05-09 18:35:27 +0900 (Mon, 09 May 2011)

  New Revision: 31493

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31493

  Log:
    * string.c: Improve documentation for String#start_with? and
      String#end_with?. fixes #4652
      patched by Andrew Grimm <andrew.j.grimm at gmail.com>

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31492)
+++ ChangeLog	(revision 31493)
@@ -1,3 +1,9 @@
+Mon May  9 18:33:05 2011  NARUSE, Yui  <naruse@r...>
+
+	* string.c: Improve documentation for String#start_with? and
+	  String#end_with?. fixes #4652
+	  patched by Andrew Grimm <andrew.j.grimm at gmail.com>
+
 Mon May  9 13:49:00 2011  Kenta Murata  <mrkn@m...>
 
 	* complex.c (string_to_c_internal): support scientific notation.
Index: string.c
===================================================================
--- string.c	(revision 31492)
+++ string.c	(revision 31493)
@@ -7139,13 +7139,13 @@
  *  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 @@
  *  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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]