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

ruby-changes:46773

From: stomar <ko1@a...>
Date: Fri, 26 May 2017 00:14:45 +0900 (JST)
Subject: [ruby-changes:46773] stomar:r58888 (trunk): hash.c: docs for Hash#transform_values

stomar	2017-05-26 00:14:38 +0900 (Fri, 26 May 2017)

  New Revision: 58888

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

  Log:
    hash.c: docs for Hash#transform_values
    
    * hash.c: [DOC] fix return value in call-seq of Hash#transform_values;
      other small fixes.

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 58887)
+++ hash.c	(revision 58888)
@@ -1806,10 +1806,11 @@ transform_values_i(VALUE key, VALUE valu https://github.com/ruby/ruby/blob/trunk/hash.c#L1806
 
 /*
  *  call-seq:
- *     hsh.transform_values {|value| block } -> hsh
+ *     hsh.transform_values {|value| block } -> new_hash
  *     hsh.transform_values                  -> an_enumerator
  *
- *  Return a new hash with the results of running block once for every value.
+ *  Returns a new hash with the results of running the block once for
+ *  every value.
  *  This method does not change the keys.
  *
  *     h = { a: 1, b: 2, c: 3 }

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

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