Skip to content

Commit

Permalink
Fix Style/NestedParenthesizedCalls docs (#7822)
Browse files Browse the repository at this point in the history
method1(method2 arg, method3, arg) is not equivalent to method1(method2 arg, method3, arg)
  • Loading branch information
igor-drozdov committed Mar 31, 2020
1 parent 85f21d9 commit 51de04e
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/style/nested_parenthesized_calls.rb
Expand Up @@ -8,10 +8,10 @@ module Style
#
# @example
# # good
# method1(method2(arg), method3(arg))
# method1(method2(arg))
#
# # bad
# method1(method2 arg, method3, arg)
# method1(method2 arg)
class NestedParenthesizedCalls < Cop
include RangeHelp

Expand Down
4 changes: 2 additions & 2 deletions manual/cops_style.md
Expand Up @@ -4411,10 +4411,10 @@ of a parenthesized method call.
```ruby
# good
method1(method2(arg), method3(arg))
method1(method2(arg))
# bad
method1(method2 arg, method3, arg)
method1(method2 arg)
```
### Configurable attributes
Expand Down

0 comments on commit 51de04e

Please sign in to comment.