From e71e83b021791de51c1889f50a49fa6c8d3d6598 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Oct 2016 03:59:46 +0000 Subject: [PATCH] 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ array.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8bc2101656..feaebd3001 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 4 12:59:44 2016 Koichi ITO + + * 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 * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): need more room diff --git a/array.c b/array.c index 8d0098c0bc..d24f071d27 100644 --- a/array.c +++ b/array.c @@ -5665,7 +5665,7 @@ rb_ary_any_p(VALUE ary) * * 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 */