lib/rubocop/cop/rails/transaction_exit_statement.rb in rubocop-rails-2.15.0 vs lib/rubocop/cop/rails/transaction_exit_statement.rb in rubocop-rails-2.15.1
- old
+ new
@@ -4,10 +4,10 @@
module Cop
module Rails
# Checks for the use of exit statements (namely `return`,
# `break` and `throw`) in transactions. This is due to the eventual
# unexpected behavior when using ActiveRecord >= 7, where transactions
- # exitted using these statements are being rollbacked rather than
+ # exited using these statements are being rollbacked rather than
# committed (pre ActiveRecord 7 behavior).
#
# As alternatives, it would be more intuitive to explicitly raise an
# error when rollback is desired, and to use `next` when commit is
# desired.