diff options
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 57b5075ffd..9b7c9842f8 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 keyword parameters"); + rb_warn("Using the last argument as keyword parameters is deprecated"); } argc--; } @@ -2584,7 +2584,7 @@ rb_scan_args_set(int argc, const VALUE *argv, } else if (f_hash && keyword_given && n_mand == argc) { /* Warn if treating keywords as positional, as in Ruby 3, this will be an error */ - 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"); } } if (f_hash && n_mand > 0 && n_mand == argc+1 && empty_keyword_given) { @@ -2593,7 +2593,7 @@ rb_scan_args_set(int argc, const VALUE *argv, ptr[argc] = rb_hash_new(); argc++; *(&argv) = ptr; - 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"); } |