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

ruby-changes:27391

From: marcandre <ko1@a...>
Date: Sun, 24 Feb 2013 05:18:45 +0900 (JST)
Subject: [ruby-changes:27391] marcandRe: r39443 (ruby_2_0_0): * backport r39442 from trunk:

marcandre	2013-02-24 05:18:35 +0900 (Sun, 24 Feb 2013)

  New Revision: 39443

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

  Log:
    * backport r39442 from trunk:
    
        * array.c: Fix rdoc for flatten!
    
        * hash.c: Correct rdoc for reject!

  Modified files:
    branches/ruby_2_0_0/array.c
    branches/ruby_2_0_0/hash.c

Index: ruby_2_0_0/array.c
===================================================================
--- ruby_2_0_0/array.c	(revision 39442)
+++ ruby_2_0_0/array.c	(revision 39443)
@@ -4193,8 +4193,8 @@ flatten(VALUE ary, int level, int *modif https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/array.c#L4193
 
 /*
  *  call-seq:
- *     ary.flatten!        -> Array or nil
- *     ary.flatten!(level) -> Array or nil
+ *     ary.flatten!        -> ary or nil
+ *     ary.flatten!(level) -> ary or nil
  *
  *  Flattens +self+ in place.
  *
Index: ruby_2_0_0/hash.c
===================================================================
--- ruby_2_0_0/hash.c	(revision 39442)
+++ ruby_2_0_0/hash.c	(revision 39443)
@@ -2697,7 +2697,7 @@ env_each_pair(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/hash.c#L2697
 
 /*
  * call-seq:
- *   ENV.reject! { |name, value| } -> Hash or nil
+ *   ENV.reject! { |name, value| } -> ENV or nil
  *   ENV.reject!                   -> Enumerator
  *
  * Equivalent to ENV#delete_if but returns +nil+ if no changes were made.

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

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