mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
cc8116b03e
commit
c56d8deaff
Notes:
git
2019-11-01 18:38:19 +09:00
1 changed files with 1 additions and 1 deletions
2
re.c
2
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue