lib/rubocop/cop/lint/else_layout.rb in rubocop-1.29.1 vs lib/rubocop/cop/lint/else_layout.rb in rubocop-1.30.0
- old
+ new
@@ -1,15 +1,15 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Lint
- # This cop checks for odd `else` block layout - like
+ # Checks for odd `else` block layout - like
# having an expression on the same line as the `else` keyword,
# which is usually a mistake.
#
- # Its auto-correction tweaks layout to keep the syntax. So, this auto-correction
+ # Its autocorrection tweaks layout to keep the syntax. So, this autocorrection
# is compatible correction for bad case syntax, but if your code makes a mistake
# with `elsif` and `else`, you will have to correct it manually.
#
# @example
#
@@ -23,10 +23,10 @@
#
# @example
#
# # good
#
- # # This code is compatible with the bad case. It will be auto-corrected like this.
+ # # This code is compatible with the bad case. It will be autocorrected like this.
# if something
# # ...
# else
# do_this
# do_that