mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Small fixes for documentation rendering
Mostly just fixing RDoc's incorrect treatment of `+`
This commit is contained in:
parent
1cbe114d1c
commit
07734b51c6
4 changed files with 18 additions and 18 deletions
8
error.c
8
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 <tt>$stderr</tt>.
|
||||
*
|
||||
* 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.
|
||||
* <tt>Warning.extend(MyNewModuleWithWarnMethod)</tt> and you can use +super+
|
||||
* to get the default behavior of printing the warning to <tt>$stderr</tt>.
|
||||
*
|
||||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue