lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.46.0 vs lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.47.0

- old
+ new

@@ -4,11 +4,13 @@ module Cop module Lint # This cop checks for unneeded usages of splat expansion # # @example + # # # bad + # # a = *[1, 2, 3] # a = *'a' # a = *1 # # begin @@ -22,10 +24,13 @@ # bar # else # baz # end # + # @example + # # # good + # # c = [1, 2, 3] # a = *c # a, b = *c # a, *b = *c # a = *1..10