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

ruby-changes:46715

From: kazu <ko1@a...>
Date: Sun, 21 May 2017 16:13:17 +0900 (JST)
Subject: [ruby-changes:46715] kazu:r58830 (trunk): Add missing word in transform_values methods description

kazu	2017-05-21 16:13:11 +0900 (Sun, 21 May 2017)

  New Revision: 58830

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

  Log:
    Add missing word in transform_values methods description
    
    Explicitly says that the methods return a new hash rather than just
    stating it return a new something we don't know.
    
    [ci skip]
    [Fix GH-1619]
    Author:    Nicolas Cavigneaux <nico@b...>

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 58829)
+++ hash.c	(revision 58830)
@@ -1809,7 +1809,7 @@ transform_values_i(VALUE key, VALUE valu https://github.com/ruby/ruby/blob/trunk/hash.c#L1809
  *     hsh.transform_values {|value| block } -> hsh
  *     hsh.transform_values                  -> an_enumerator
  *
- *  Return a new with the results of running block once for every value.
+ *  Return a new hash with the results of running block once for every value.
  *  This method does not change the keys.
  *
  *     h = { a: 1, b: 2, c: 3 }
@@ -1839,7 +1839,7 @@ rb_hash_transform_values(VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L1839
  *     hsh.transform_values! {|value| block } -> hsh
  *     hsh.transform_values!                  -> an_enumerator
  *
- *  Return a new with the results of running block once for every value.
+ *  Return a new hash with the results of running 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/

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