lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.28.2 vs lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.29.0
- old
+ new
@@ -3,11 +3,11 @@
module RuboCop
module Cop
module Lint
# This cop checks for ambiguous ranges.
#
- # Ranges have quite low precedence, which leads to unexpected behaviour when
+ # Ranges have quite low precedence, which leads to unexpected behavior when
# using a range with other operators. This cop avoids that by making ranges
# explicit by requiring parenthesis around complex range boundaries (anything
# that is not a literal: numerics, strings, symbols, etc.).
#
# This cop can be configured with `RequireParenthesesForMethodChains` in order to
@@ -19,10 +19,10 @@
#
# @safety
# The cop auto-corrects by wrapping the entire boundary in parentheses, which
# makes the outcome more explicit but is possible to not be the intention of the
# programmer. For this reason, this cop's auto-correct is unsafe (it will not
- # change the behaviour of the code, but will not necessarily match the
+ # change the behavior of the code, but will not necessarily match the
# intent of the program).
#
# @example
# # bad
# x || 1..2