[前][次][番号順一覧][スレッド一覧]

ruby-changes:58537

From: Alan <ko1@a...>
Date: Fri, 1 Nov 2019 18:38:16 +0900 (JST)
Subject: [ruby-changes:58537] c56d8deaff (master): Mention correct class name in uninitialized error

https://git.ruby-lang.org/ruby.git/commit/?id=c56d8deaff

From c56d8deaff7dede58e7017bee58f40b86dcda3f4 Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Thu, 24 Oct 2019 14:43:04 -0400
Subject: 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.

diff --git a/re.c b/re.c
index 92eba92..e0878ba 100644
--- a/re.c
+++ b/re.c
@@ -1044,7 +1044,7 @@ static void https://github.com/ruby/ruby/blob/trunk/re.c#L1044
 match_check(VALUE match)
 {
     if (!RMATCH(match)->regexp) {
-	rb_raise(rb_eTypeError, "uninitialized Match");
+	rb_raise(rb_eTypeError, "uninitialized MatchData");
     }
 }
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]