From e7493df7ac22c1257692251c97362ad55408a9fe Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 17 Apr 2024 11:46:01 +0200 Subject: [PATCH] Improve phrasing of ignored block warnings --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 68a74a3e33..00cd709526 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3008,7 +3008,7 @@ warn_unused_block(const rb_callable_method_entry_t *cme, const rb_iseq_t *iseq, VALUE name = rb_gen_method_name(cme->defined_class, ISEQ_BODY(iseq)->location.base_label); if (!NIL_P(m_loc)) { - rb_warning("the passed block for '%"PRIsVALUE"' defined at %"PRIsVALUE":%"PRIsVALUE" may be ignored", + rb_warning("the block passed to '%"PRIsVALUE"' defined at %"PRIsVALUE":%"PRIsVALUE" may be ignored", name, RARRAY_AREF(m_loc, 0), RARRAY_AREF(m_loc, 1)); } else {