diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-20 19:41:15 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-20 19:41:15 +0900 |
commit | f7aee584987e24768670e96b1455ed1193f91ef2 (patch) | |
tree | 6f6465e61af7bc2581abdaad09ac8e5786975d6a /test/ruby/test_io.rb | |
parent | 2b2030f265e4ec0782de9c8dd9f8828a1a0af1b5 (diff) |
vm_args.c: rephrase the warning message of keyword argument separation
(old)
test.rb:4: warning: The last argument is used as the keyword parameter
test.rb:1: warning: for `foo' defined here; maybe ** should be added to the call?
(new)
test.rb:4: warning: The last argument is used as keyword parameters; maybe ** should be added to the call
test.rb:1: warning: The called method `foo' is defined here
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index f3b08154c8..9a3a0f8e1a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2284,7 +2284,7 @@ class TestIO < Test::Unit::TestCase def o.to_open(**kw); kw; end assert_equal({:a=>1}, open(o, a: 1)) - w = /The last argument is used as the keyword parameter.*for `(to_)?open'/m + w = /The last argument is used as keyword parameters.*The called method `(to_)?open'/m redefined = nil w.singleton_class.define_method(:===) do |s| match = super(s) |