summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-13 00:56:12 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-13 00:56:12 +0000
commitd3da5fbd30e174c5737ec09c6896db7e81691714 (patch)
tree4637664b9aa913d7bd0bc43b9ec5f9166f2ef2c1 /proc.c
parent95a82766306641595179e23dbac3d6992b919460 (diff)
Proc.new: change deprecation warning for clarity (issue #15539)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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