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