lib/rubocop/cop/style/infinite_loop.rb in rubocop-1.21.0 vs lib/rubocop/cop/style/infinite_loop.rb in rubocop-1.22.0

- old
+ new

@@ -3,12 +3,13 @@ module RuboCop module Cop module Style # Use `Kernel#loop` for infinite loops. # - # This cop is marked as unsafe as the rule does not necessarily - # apply if the body might raise a `StopIteration` exception; contrary to - # other infinite loops, `Kernel#loop` silently rescues that and returns `nil`. + # @safety + # This cop is unsafe as the rule should not necessarily apply if the loop + # body might raise a `StopIteration` exception; contrary to other infinite + # loops, `Kernel#loop` silently rescues that and returns `nil`. # # @example # # bad # while true # work