lib/rubocop/cop/performance/string_include.rb in rubocop-performance-1.13.3 vs lib/rubocop/cop/performance/string_include.rb in rubocop-performance-1.14.0
- old
+ new
@@ -1,14 +1,13 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Performance
- # This cop identifies unnecessary use of a regex where
- # `String#include?` would suffice.
+ # Identifies unnecessary use of a regex where `String#include?` would suffice.
#
# @safety
- # This cop's offenses are not safe to auto-correct if a receiver is nil.
+ # This cop's offenses are not safe to autocorrect if a receiver is nil.
#
# @example
# # bad
# 'abc'.match?(/ab/)
# /ab/.match?('abc')