aboutsummaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 558304fb7f..57628c86f1 100644
--- a/proc.c
+++ b/proc.c
@@ -710,7 +710,7 @@ proc_new(VALUE klass, int8_t is_lambda)
rb_raise(rb_eArgError, proc_without_block);
}
else {
- rb_warn(proc_without_block);
+ rb_warn("Capturing the given block using Proc.new is deprecated; use `&block` instead");
}
}
#else