summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2019-12-23 02:34:16 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2019-12-23 16:47:33 -0500
commit819b604037c317d2b53a1aaca67aef25da2d5ec9 (patch)
tree0dfc97bef8bdac44091e2c627325ed61fd61a16c /include
parentdf6f5c44af1f261fa940ec3954468be8b820450e (diff)
Reword keyword arguments warning messages to convey these are deprecation warnings
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h6
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");
}