From b16d73ae0c55db444026780871552b81693f5438 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 27 Oct 2018 07:22:38 +0000 Subject: Update the example of local variable shadowing I came up with this snippet when we were trying to convince Matz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a49416eb17..89e2ebb648 100644 --- a/NEWS +++ b/NEWS @@ -34,7 +34,7 @@ sufficient information, see the ChangeLog file or Redmine * "shadowing outer local variable" warning was removed. [Feature #12490] You can now write the following without warning. - user = User.all.find {|user| cond(user) } + user = users.find {|user| cond(user) } === Core classes updates (outstanding ones only) -- cgit v1.2.3