Skip to content

Commit

Permalink
[Doc] Tweak example desc for Style/IfWithBooleanLiteralBranches
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jan 17, 2022
1 parent 92a35ce commit db920cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/if_with_boolean_literal_branches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Style
# # good (but potentially an unsafe correction)
# foo.do_something?
#
# @example AllowedMethods: ['nonzero?']
# @example AllowedMethods: ['nonzero?'] (default)
# # good
# num.nonzero? ? true : false
#
Expand Down

0 comments on commit db920cd

Please sign in to comment.