Skip to content

Commit

Permalink
Use behavior instead of behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiMisiura committed May 8, 2022
1 parent 2a784b7 commit 16f2e9c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -24,6 +24,9 @@ InternalAffairs/UndefinedConfig:

Naming/InclusiveLanguage:
FlaggedTerms:
behaviour:
Suggestions:
- behavior
offence:
Suggestions:
- offense
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_performance.adoc
Expand Up @@ -1268,7 +1268,7 @@ is wanted.
=== Safety

This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?`
are not equivalent behaviour.
are not equivalent behavior.

=== Examples

Expand Down
2 changes: 1 addition & 1 deletion legacy-docs/cops_performance.md
Expand Up @@ -607,7 +607,7 @@ end points of the `Range`. In a great majority of cases, this is what
is wanted.

This cop is `Safe: false` by default because `Range#include?` and
`Range#cover?` are not equivalent behaviour.
`Range#cover?` are not equivalent behavior.

### Examples

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/performance/range_include.rb
Expand Up @@ -11,7 +11,7 @@ module Performance
#
# @safety
# This cop is unsafe because `Range#include?` (or `Range#member?`) and `Range#cover?`
# are not equivalent behaviour.
# are not equivalent behavior.
#
# @example
# # bad
Expand Down

0 comments on commit 16f2e9c

Please sign in to comment.