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

ruby-changes:34295

From: nobu <ko1@a...>
Date: Sun, 8 Jun 2014 04:52:53 +0900 (JST)
Subject: [ruby-changes:34295] nobu:r46376 (trunk): string.c: update rdoc of rb_str_slice_bang()

nobu	2014-06-08 04:52:43 +0900 (Sun, 08 Jun 2014)

  New Revision: 46376

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

  Log:
    string.c: update rdoc of rb_str_slice_bang()
    
    * string.c (rb_str_slice_bang): [DOC] update return value against
      a fixnum, which has changed because of M17N.  [fix GH-631]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46375)
+++ ChangeLog	(revision 46376)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun  8 04:52:40 2014  Jun Hiroe  <Jun.Hiroe@g...>
+
+	* string.c (rb_str_slice_bang): [DOC] update return value against
+	  a fixnum, which has changed because of M17N.  [fix GH-631]
+
 Sat Jun  7 22:13:42 2014  Benoit Daloze  <eregontp@g...>
 
 	* numeric.c (do_coerce): Add a warning when an exception is raised
Index: string.c
===================================================================
--- string.c	(revision 46375)
+++ string.c	(revision 46376)
@@ -3782,7 +3782,7 @@ rb_str_insert(VALUE str, VALUE idx, VALU https://github.com/ruby/ruby/blob/trunk/string.c#L3782
 
 /*
  *  call-seq:
- *     str.slice!(fixnum)           -> fixnum or nil
+ *     str.slice!(fixnum)           -> new_str or nil
  *     str.slice!(fixnum, fixnum)   -> new_str or nil
  *     str.slice!(range)            -> new_str or nil
  *     str.slice!(regexp)           -> new_str or nil

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

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