mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Reword keyword arguments warning messages to convey these are deprecation warnings
This commit is contained in:
parent
df6f5c44af
commit
819b604037
14 changed files with 501 additions and 501 deletions
|
@ -145,7 +145,7 @@ vm_call0_body(rb_execution_context_t *ec, struct rb_calling_info *calling, struc
|
|||
RB_TYPE_P(argv[calling->argc-1], T_HASH) &&
|
||||
RHASH_EMPTY_P(argv[calling->argc-1])) {
|
||||
if (calling->argc == 1) {
|
||||
rb_warn("The keyword argument is passed as the last hash parameter");
|
||||
rb_warn("Passing the keyword argument as the last hash parameter is deprecated");
|
||||
}
|
||||
else {
|
||||
calling->argc--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue