aboutsummaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-12-04 01:26:27 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-12-04 06:40:54 +0900
commita705f6472c3e34422776d886bbc9f98676d8c0eb (patch)
treedac18a8e5a29648e65b6e1c948a9a2248bc92ace /re.c
parent34a66b1f36e9a065cf8433598b3fce03ce2c711e (diff)
downloadruby-a705f6472c3e34422776d886bbc9f98676d8c0eb.tar.gz
Revert "Improve warning message"
This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a.
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 11f4679721..e10901b83d 100644
--- a/re.c
+++ b/re.c
@@ -3300,7 +3300,7 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
}
if (NIL_P(str)) {
- rb_warn("given argument is nil; this will raise a TypeError in the next release");
+ rb_warn("given argument is nil");
}
pos = reg_match_pos(re, &str, pos);
if (pos < 0) {
@@ -3348,7 +3348,7 @@ rb_reg_match_p(VALUE re, VALUE str, long pos)
int tmpreg;
if (NIL_P(str)) {
- rb_warn("given argument is nil; this will raise a TypeError in the next release");
+ rb_warn("given argument is nil");
return Qfalse;
}
str = SYMBOL_P(str) ? rb_sym2str(str) : StringValue(str);