From f64d7674f6c03834754ec92054300eae7bac3015 Mon Sep 17 00:00:00 2001 From: Adam Daniels Date: Tue, 2 Mar 2021 12:33:20 -0500 Subject: Fix example for custom warn method Regexp has a match? method. [ci skip] --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index c01919f698..a0d81c8d94 100644 --- a/error.c +++ b/error.c @@ -293,7 +293,7 @@ rb_warning_s_warn(int argc, VALUE *argv, VALUE mod) * Example: * module MyWarningFilter * def warn(message, category: nil, **kwargs) - * if /some warning I want to ignore/.matches?(message) + * if /some warning I want to ignore/.match?(message) * # ignore * else * super -- cgit v1.2.3