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

ruby-changes:23924

From: drbrain <ko1@a...>
Date: Sat, 9 Jun 2012 08:10:06 +0900 (JST)
Subject: [ruby-changes:23924] drbrain:r35975 (trunk): * string.c (rb_str_start_with): Removed "p" from start_with? examples

drbrain	2012-06-09 08:09:56 +0900 (Sat, 09 Jun 2012)

  New Revision: 35975

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

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/string.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35974)
+++ ChangeLog	(revision 35975)
@@ -1,3 +1,10 @@
+Sat Jun  9 08:09:38 2012  Eric Hodel  <drbrain@s...>
+
+	* 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@s...>
 
 	* lib/benchmark.rb:  Updated formatting of Benchmark documentation for
Index: string.c
===================================================================
--- string.c	(revision 35974)
+++ string.c	(revision 35975)
@@ -7216,18 +7216,15 @@
 
 /*
  *  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 @@
 
 /*
  *  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

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

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