From 07734b51c66756c4a7a512ebb4736763542d99f3 Mon Sep 17 00:00:00 2001 From: Victor Shepelev Date: Sat, 9 Dec 2023 06:54:33 +0200 Subject: [DOC] Small fixes for documentation rendering Mostly just fixing RDoc's incorrect treatment of `+` --- error.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index e481dbaee4..08125b974d 100644 --- a/error.c +++ b/error.c @@ -291,11 +291,11 @@ rb_warning_s_warn(int argc, VALUE *argv, VALUE mod) * * Changing the behavior of Warning.warn is useful to customize how warnings are * handled by Ruby, for instance by filtering some warnings, and/or outputting - * warnings somewhere other than $stderr. + * warnings somewhere other than $stderr. * * If you want to change the behavior of Warning.warn you should use - * +Warning.extend(MyNewModuleWithWarnMethod)+ and you can use `super` - * to get the default behavior of printing the warning to $stderr. + * Warning.extend(MyNewModuleWithWarnMethod) and you can use +super+ + * to get the default behavior of printing the warning to $stderr. * * Example: * module MyWarningFilter @@ -312,7 +312,7 @@ rb_warning_s_warn(int argc, VALUE *argv, VALUE mod) * You should never redefine Warning#warn (the instance method), as that will * then no longer provide a way to use the default behavior. * - * The +warning+ gem provides convenient ways to customize Warning.warn. + * The warning[https://rubygems.org/gems/warning] gem provides convenient ways to customize Warning.warn. */ static VALUE -- cgit v1.2.3