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"); } }