diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2019-10-24 14:43:04 -0400 |
---|---|---|
committer | Kazuhiro NISHIYAMA <znz@users.noreply.github.com> | 2019-11-01 18:37:57 +0900 |
commit | c56d8deaff7dede58e7017bee58f40b86dcda3f4 (patch) | |
tree | 2d185fcbc6f59e5f976b275e4a876e878870012f | |
parent | cc8116b03e89b9c5fca5ace90a8141cff58d549b (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } } |