Skip to content

Commit 75e8065

Browse files
committed
Fix typos
This commit fixes the following typos: ```console $ bundle exec rake git ls-files --empty-directory | xargs codespell README.md:87: complies ==> compiles docs/modules/ROOT/pages/cops_performance.adoc:1274: falsy ==> falsely, false lib/rubocop/cop/performance/map_compact.rb:13: falsy ==> falsely, false ```
1 parent be32fec commit 75e8065

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ You can read a lot more about RuboCop Performance in its [official docs](https:/
8484

8585
## Compatibility
8686

87-
RuboCop Performance complies with the RuboCop core compatibility.
87+
RuboCop Performance is compatible with RuboCop core.
8888

8989
See the [compatibility documentation](https://docs.rubocop.org/rubocop/compatibility.html) for further details.
9090

docs/modules/ROOT/pages/cops_performance.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ This cop identifies places where `map { ... }.compact` can be replaced by `filte
12711271
12721272
This cop's autocorrection is unsafe because `map { ... }.compact` might yield
12731273
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`.
12751275
12761276
[#examples-performancemapcompact]
12771277
=== Examples

lib/rubocop/cop/performance/map_compact.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Performance
1010
# @safety
1111
# This cop is unsafe because `map { ... }.compact` might yield
1212
# 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`.
1414
#
1515
# [source,ruby]
1616
# ----

0 commit comments

Comments
 (0)