From 087843a610e03a57f94e92daf1a3e501c74daa09 Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita Date: Fri, 20 Dec 2024 17:53:26 +0900 Subject: [PATCH] [DOC] Fix markup of Performance/Count --- lib/rubocop/cop/performance/count.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rubocop/cop/performance/count.rb b/lib/rubocop/cop/performance/count.rb index 0eb13e52af..adc5930da1 100644 --- a/lib/rubocop/cop/performance/count.rb +++ b/lib/rubocop/cop/performance/count.rb @@ -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