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

ruby-changes:34103

From: akr <ko1@a...>
Date: Wed, 28 May 2014 00:16:17 +0900 (JST)
Subject: [ruby-changes:34103] akr:r46184 (trunk): Avoid a shadowing warning.

akr	2014-05-28 00:15:54 +0900 (Wed, 28 May 2014)

  New Revision: 46184

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46184

  Log:
    Avoid a shadowing warning.

  Modified files:
    trunk/test/rexml/test_core.rb
Index: test/rexml/test_core.rb
===================================================================
--- test/rexml/test_core.rb	(revision 46183)
+++ test/rexml/test_core.rb	(revision 46184)
@@ -249,7 +249,7 @@ module REXMLTests https://github.com/ruby/ruby/blob/trunk/test/rexml/test_core.rb#L249
       assert_instance_of DocType, doc.doctype
       assert_equal doc.version, "1.0"
 
-      doc = File.open(fixture_path("dash.xml")) {|source| Document.new source }
+      doc = File.open(fixture_path("dash.xml")) {|s| Document.new s }
       assert_equal "content-2", doc.elements["//content-2"].name
     end
 

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

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