aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-20 19:41:15 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-20 19:41:15 +0900
commitf7aee584987e24768670e96b1455ed1193f91ef2 (patch)
tree6f6465e61af7bc2581abdaad09ac8e5786975d6a /include
parent2b2030f265e4ec0782de9c8dd9f8828a1a0af1b5 (diff)
downloadruby-f7aee584987e24768670e96b1455ed1193f91ef2.tar.gz
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 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 8a5aacb42b..57b5075ffd 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -2569,7 +2569,7 @@ rb_scan_args_set(int argc, const VALUE *argv,
if (!keyword_given) {
/* Warn if treating positional as keyword, as in Ruby 3,
this will be an error */
- rb_warn("The last argument is used as the keyword parameter");
+ rb_warn("The last argument is used as keyword parameters");
}
argc--;
}