Skip to content

Commit

Permalink
Fix typo in Layout/FirstArrayElementIndentation
Browse files Browse the repository at this point in the history
  • Loading branch information
epistrephein committed Nov 17, 2019
1 parent 397043d commit 33c7744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/layout/first_array_element_indentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Layout
# @example EnforcedStyle: special_inside_parentheses (default)
# # The `special_inside_parentheses` style enforces that the first
# # element in an array literal where the opening bracket and first
# # element are on seprate lines is indented one step (two spaces) more
# # element are on separate lines is indented one step (two spaces) more
# # than the position inside the opening parenthesis.
#
# #bad
Expand All @@ -44,7 +44,7 @@ module Layout
# @example EnforcedStyle: consistent
# # The `consistent` style enforces that the first element in an array
# # literal where the opening bracket and the first element are on
# # seprate lines is indented the same as an array literal which is not
# # separate lines is indented the same as an array literal which is not
# # defined inside a method call.
#
# #bad
Expand Down
4 changes: 2 additions & 2 deletions manual/cops_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,7 @@ styles are 'consistent' and 'align_brackets'. Here are examples:
```ruby
# The `special_inside_parentheses` style enforces that the first
# element in an array literal where the opening bracket and first
# element are on seprate lines is indented one step (two spaces) more
# element are on separate lines is indented one step (two spaces) more
# than the position inside the opening parenthesis.

#bad
Expand All @@ -1911,7 +1911,7 @@ but_in_a_method_call([
```ruby
# The `consistent` style enforces that the first element in an array
# literal where the opening bracket and the first element are on
# seprate lines is indented the same as an array literal which is not
# separate lines is indented the same as an array literal which is not
# defined inside a method call.

#bad
Expand Down

0 comments on commit 33c7744

Please sign in to comment.