From d0778cb264cc899d2d4d9d98cfee06ef01883c3a Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 3 Oct 2020 13:19:24 +0200 Subject: [PATCH] Update example to handle keywords passed to Warning.warn --- error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error.c b/error.c index 1eccedf9a9..4d534f7c04 100644 --- a/error.c +++ b/error.c @@ -277,11 +277,11 @@ rb_warning_s_warn(int argc, VALUE *argv, VALUE mod) * * Example: * module MyWarningFilter - * def warn(message) + * def warn(message, category: nil, **kwargs) * if /some warning I want to ignore/.matches?(message) * # ignore * else - * super(message) + * super * end * end * end