Skip to content

Commit

Permalink
Refine an example for "Space in Method Calls" rule
Browse files Browse the repository at this point in the history
Follow up of rubocop/rubocop#7909.

This PR refines an example for "Space in Method Calls" rule.

The example code is not compatible.

```ruby
def f(num)
  num * 2
end

p f (3 + 2) + 1 #=> 12
p f(3 + 2) + 1  #=> 11
```

This PR replaces an example code.
  • Loading branch information
koic committed Apr 26, 2020
1 parent c45dac6 commit 1203b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Expand Up @@ -723,10 +723,10 @@ Do not put a space between a method name and the opening parenthesis.
[source,ruby]
----
# bad
f (3 + 2) + 1
puts (x + y)
# good
f(3 + 2) + 1
puts(x + y)
----

=== Multi-line Arrays Alignment [[align-multiline-arrays]]
Expand Down

0 comments on commit 1203b7a

Please sign in to comment.