aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index b1b673501e..54b044f421 100644
--- a/proc.c
+++ b/proc.c
@@ -758,8 +758,8 @@ proc_new(VALUE klass, int8_t is_lambda, int8_t kernel)
}
else {
const char *name = kernel ? "Kernel#proc" : "Proc.new";
- rb_warn("Capturing the given block using %s is deprecated; "
- "use `&block` instead", name);
+ rb_warn_deprecated("Capturing the given block using %s",
+ "`&block`", name);
}
}
#else