Skip to content

Commit

Permalink
[DOC] Fix markup of Performance/Count
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanagi authored Dec 20, 2024
1 parent 9aef9ac commit 087843a
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 087843a

Please sign in to comment.