summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2019-10-24 14:43:04 -0400
committerKazuhiro NISHIYAMA <znz@users.noreply.github.com>2019-11-01 18:37:57 +0900
commitc56d8deaff7dede58e7017bee58f40b86dcda3f4 (patch)
tree2d185fcbc6f59e5f976b275e4a876e878870012f
parentcc8116b03e89b9c5fca5ace90a8141cff58d549b (diff)
downloadruby-c56d8deaff7dede58e7017bee58f40b86dcda3f4.tar.gz
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.
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
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");
}
}