From c56d8deaff7dede58e7017bee58f40b86dcda3f4 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Thu, 24 Oct 2019 14:43:04 -0400 Subject: [PATCH] Mention correct class name in uninitialized error I think this meant to mention `MatchData`? This is a breaking change, but should be a minor one. --- re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re.c b/re.c index 92eba92d1b..e0878baf2c 100644 --- a/re.c +++ b/re.c @@ -1044,7 +1044,7 @@ static void match_check(VALUE match) { if (!RMATCH(match)->regexp) { - rb_raise(rb_eTypeError, "uninitialized Match"); + rb_raise(rb_eTypeError, "uninitialized MatchData"); } }