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

ruby-changes:47558

From: kazu <ko1@a...>
Date: Mon, 28 Aug 2017 20:20:13 +0900 (JST)
Subject: [ruby-changes:47558] kazu:r59674 (trunk): [DOC] Fix typo in rdoc of `transform_values!` [ci skip]

kazu	2017-08-28 20:20:08 +0900 (Mon, 28 Aug 2017)

  New Revision: 59674

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

  Log:
    [DOC] Fix typo in rdoc of `transform_values!` [ci skip]

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 59673)
+++ hash.c	(revision 59674)
@@ -1948,7 +1948,7 @@ rb_hash_transform_values(VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L1948
  *     h.transform_values! {|v| v * v + 1 }  #=> { a: 2, b: 5, c: 10 }
  *     h.transform_values!(&:to_s)           #=> { a: "2", b: "5", c: "10" }
  *     h.transform_values!.with_index {|v, i| "#{v}.#{i}" }
- *                                           #=> { a: "1.0", b: "5.1", c: "10.2" }
+ *                                           #=> { a: "2.0", b: "5.1", c: "10.2" }
  *
  *  If no block is given, an enumerator is returned instead.
  */

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

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