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.
This commit is contained in:
Alan Wu 2019-10-24 14:43:04 -04:00 committed by Kazuhiro NISHIYAMA
parent cc8116b03e
commit c56d8deaff
Notes: git 2019-11-01 18:38:19 +09:00

2
re.c
View File

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