File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/rubocop/cop/performance Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ You can read a lot more about RuboCop Performance in its [official docs](https:/
84
84
85
85
# # Compatibility
86
86
87
- RuboCop Performance complies with the RuboCop core compatibility .
87
+ RuboCop Performance is compatible with RuboCop core.
88
88
89
89
See the [compatibility documentation](https://docs.rubocop.org/rubocop/compatibility.html) for further details.
90
90
Original file line number Diff line number Diff line change @@ -1271,7 +1271,7 @@ This cop identifies places where `map { ... }.compact` can be replaced by `filte
1271
1271
1272
1272
This cop's autocorrection is unsafe because `map { ... }.compact` might yield
1273
1273
different results than `filter_map`. As illustrated in the example, `filter_map`
1274
- also filters out falsy values, while `compact` only gets rid of `nil`.
1274
+ also filters out falsey values, while `compact` only gets rid of `nil`.
1275
1275
1276
1276
[#examples-performancemapcompact]
1277
1277
=== Examples
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module Performance
10
10
# @safety
11
11
# This cop is unsafe because `map { ... }.compact` might yield
12
12
# different results than `filter_map`. As illustrated in the example, `filter_map`
13
- # also filters out falsy values, while `compact` only gets rid of `nil`.
13
+ # also filters out falsey values, while `compact` only gets rid of `nil`.
14
14
#
15
15
# [source,ruby]
16
16
# ----
You can’t perform that action at this time.
0 commit comments