summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
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