Reword keyword arguments warning messages to convey these are deprecation warnings

This commit is contained in:
Marc-Andre Lafortune 2019-12-23 02:34:16 -05:00
parent df6f5c44af
commit 819b604037
14 changed files with 501 additions and 501 deletions

View file

@ -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--;