Skip to content

Commit

Permalink
Merge pull request #1169 from biow0lf/fix-typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
koic authored Oct 27, 2023
2 parents 27ec210 + f9cf076 commit 6a60514
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module YourCoolApp
end
```

It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops.
It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops.
`rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to
be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead.

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ The cop is configurable and can enforce the use of the older
something_filter methods or the newer something_action methods.

IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2,
and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.

=== Examples

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/usage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
== Rails configuration tip

If you are using Rails 6.1 or newer, add the following `config.generators.after_generate` setting to
your config/application.rb to apply RuboCop autocorretion to code generated by `bin/rails g`.
your config/application.rb to apply RuboCop autocorrection to code generated by `bin/rails g`.

[source,ruby]
----
Expand All @@ -50,6 +50,6 @@ module YourCoolApp
end
----

It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops.
It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops.
`rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to
be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rails/action_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Rails
# something_filter methods or the newer something_action methods.
#
# IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2,
# and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
# and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
#
# @example EnforcedStyle: action (default)
# # bad
Expand Down

0 comments on commit 6a60514

Please sign in to comment.