Skip to content

Commit

Permalink
Fix typo in documentation comment
Browse files Browse the repository at this point in the history
The document is for `Warning.process`, but `Warning.ignore` is called unexpectedly in the document.
  • Loading branch information
pocke authored Jul 25, 2020
1 parent e2195ab commit 6a97cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/warning.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def ignore(regexp, path='')
# Instead of passing a block, you can pass a hash of actions to take for specific
# warnings, using regexp as keys and a callable objects as values:
#
# Warning.ignore(__FILE__,
# Warning.process(__FILE__,
# /instance variable @\w+ not initialized/ => proc do |warning|
# LOGGER.warning(warning)
# end,
Expand Down

0 comments on commit 6a97cad

Please sign in to comment.