ruby-changes:44264
From: nobu <ko1@a...>
Date: Tue, 4 Oct 2016 12:59:57 +0900 (JST)
Subject: [ruby-changes:44264] nobu:r56337 (trunk): array.c: update Array#dig doc
nobu 2016-10-04 12:59:46 +0900 (Tue, 04 Oct 2016) New Revision: 56337 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56337 Log: array.c: update Array#dig doc * array.c (rb_ary_dig): [DOC] update an example of error message by Array#dig, because of Integer Unification. [Fix GH-1455] Modified files: trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 56336) +++ array.c (revision 56337) @@ -5665,7 +5665,7 @@ rb_ary_any_p(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L5665 * * a.dig(0, 1, 1) #=> 3 * a.dig(1, 2, 3) #=> nil - * a.dig(0, 0, 0) #=> TypeError: Fixnum does not have #dig method + * a.dig(0, 0, 0) #=> TypeError: Integer does not have #dig method * [42, {foo: :bar}].dig(1, :foo) #=> :bar */ Index: ChangeLog =================================================================== --- ChangeLog (revision 56336) +++ ChangeLog (revision 56337) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Oct 4 12:59:44 2016 Koichi ITO <koic.ito@g...> + + * array.c (rb_ary_dig): [DOC] update an example of error message + by Array#dig, because of Integer Unification. [Fix GH-1455] + Tue Oct 4 09:55:12 2016 Nobuyoshi Nakada <nobu@r...> * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): need more room -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/