Skip to content

Commit

Permalink
Merge pull request #481 from kyanagi/patch-1
Browse files Browse the repository at this point in the history
[DOC] Fix markup of `Performance/Count`
  • Loading branch information
koic authored Dec 20, 2024
2 parents 9aef9ac + 087843a commit ad9fd62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/performance/count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ module Performance
#
# [source,ruby]
# ----
# `Model.where(id: [1, 2, 3]).select { |m| m.method == true }.size`
# Model.where(id: [1, 2, 3]).select { |m| m.method == true }.size
# ----
#
# becomes:
#
# [source,ruby]
# ----
# `Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true }`
# Model.where(id: [1, 2, 3]).to_a.count { |m| m.method == true }
# ----
#
# @example
Expand Down

0 comments on commit ad9fd62

Please sign in to comment.