lib/rubocop/cop/performance/squeeze.rb in rubocop-performance-1.13.3 vs lib/rubocop/cop/performance/squeeze.rb in rubocop-performance-1.14.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Performance
- # This cop identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')`
+ # Identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')`
# can be replaced by `squeeze('a')` and `squeeze!('a')`.
#
# The `squeeze('a')` method is faster than `gsub(/a+/, 'a')`.
#
# @example