ruby-changes:6073
From: mame <ko1@a...>
Date: Thu, 26 Jun 2008 23:59:18 +0900 (JST)
Subject: [ruby-changes:6073] Ruby:r17585 (trunk): * string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
mame 2008-06-26 23:58:59 +0900 (Thu, 26 Jun 2008)
New Revision: 17585
Modified files:
trunk/ChangeLog
trunk/string.c
Log:
* string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
rdoc.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=17585&r2=17584&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17585&r2=17584&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 17584)
+++ ChangeLog (revision 17585)
@@ -1,3 +1,8 @@
+Thu Jun 26 23:58:29 2008 Yusuke Endoh <mame@t...>
+
+ * string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
+ rdoc.
+
Thu Jun 26 17:43:41 2008 Yukihiro Matsumoto <matz@r...>
* variable.c (rb_f_trace_var): should not be allowed at safe level 4.
Index: string.c
===================================================================
--- string.c (revision 17584)
+++ string.c (revision 17585)
@@ -2093,19 +2093,17 @@
/*
* call-seq:
* str.index(substring [, offset]) => fixnum or nil
- * str.index(fixnum [, offset]) => fixnum or nil
* str.index(regexp [, offset]) => fixnum or nil
*
- * Returns the index of the first occurrence of the given <i>substring</i>,
- * character (<i>fixnum</i>), or pattern (<i>regexp</i>) in <i>str</i>. Returns
- * <code>nil</code> if not found. If the second parameter is present, it
- * specifies the position in the string to begin the search.
+ * Returns the index of the first occurrence of the given <i>substring</i> or
+ * pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
+ * found. If the second parameter is present, it specifies the position in the
+ * string to begin the search.
*
* "hello".index('e') #=> 1
* "hello".index('lo') #=> 3
* "hello".index('a') #=> nil
* "hello".index(?e) #=> 1
- * "hello".index(101) #=> 1
* "hello".index(/[aeiou]/, -3) #=> 4
*/
@@ -2202,20 +2200,18 @@
/*
* call-seq:
* str.rindex(substring [, fixnum]) => fixnum or nil
- * str.rindex(fixnum [, fixnum]) => fixnum or nil
* str.rindex(regexp [, fixnum]) => fixnum or nil
*
- * Returns the index of the last occurrence of the given <i>substring</i>,
- * character (<i>fixnum</i>), or pattern (<i>regexp</i>) in <i>str</i>. Returns
- * <code>nil</code> if not found. If the second parameter is present, it
- * specifies the position in the string to end the search---characters beyond
- * this point will not be considered.
+ * Returns the index of the last occurrence of the given <i>substring</i> or
+ * pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
+ * found. If the second parameter is present, it specifies the position in the
+ * string to end the search---characters beyond this point will not be
+ * considered.
*
* "hello".rindex('e') #=> 1
* "hello".rindex('l') #=> 3
* "hello".rindex('a') #=> nil
* "hello".rindex(?e) #=> 1
- * "hello".rindex(101) #=> 1
* "hello".rindex(/[aeiou]/, -2) #=> 1
*/
@@ -3596,7 +3592,6 @@
/*
* call-seq:
* str.include? other_str => true or false
- * str.include? fixnum => true or false
*
* Returns <code>true</code> if <i>str</i> contains the given string or
* character.
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/