Skip to content

Commit

Permalink
Lint/RequireParentheses comment tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Feb 3, 2025
1 parent 8b19615 commit 5defa09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ameba/rule/lint/require_parentheses.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ module Ameba::Rule::Lint
# For example, this is considered invalid:
#
# ```
# if foo.includes? "bar" || foo.includes? "batz"
# if foo.includes? "bar" || foo.includes? "baz"
# # ...
# end
# ```
#
# And need to be written as:
#
# ```
# if foo.includes?("bar") || foo.includes?("batz")
# if foo.includes?("bar") || foo.includes?("baz")
# # ...
# end
# ```
#
Expand Down

0 comments on commit 5defa09

Please sign in to comment.