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

ruby-changes:49063

From: kazu <ko1@a...>
Date: Wed, 13 Dec 2017 00:17:04 +0900 (JST)
Subject: [ruby-changes:49063] kazu:r61175 (trunk): Remove unnecessary `:`

kazu	2017-12-13 00:01:07 +0900 (Wed, 13 Dec 2017)

  New Revision: 61175

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

  Log:
    Remove unnecessary `:`
    
    Before:
    
    `.../irb/init.rb:280: warning: :LoadError: cannot load such file -- hoge`
    
    After:
    
    `.../irb/init.rb:280: warning: LoadError: cannot load such file -- hoge`
    
    [ci skip]

  Modified files:
    trunk/lib/irb/init.rb
Index: lib/irb/init.rb
===================================================================
--- lib/irb/init.rb	(revision 61174)
+++ lib/irb/init.rb	(revision 61175)
@@ -277,7 +277,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L277
       begin
         require m
       rescue LoadError => err
-        warn ":#{err.class}: #{err}", uplevel: 0
+        warn "#{err.class}: #{err}", uplevel: 0
       end
     end
   end

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

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