Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine an example for "Space in Method Calls" rule #814

Merged

Conversation

koic
Copy link
Member

@koic koic commented Apr 26, 2020

Follow up of rubocop/rubocop#7909.

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

The example code is not compatible.

def f(num)
  num * 2
end

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

This PR replaces an example code.

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.
@bbatsov bbatsov merged commit 134c050 into rubocop:master Apr 30, 2020
@bbatsov
Copy link
Collaborator

bbatsov commented Apr 30, 2020

Thanks!

@koic koic deleted the refine_an_example_for_space_in_method_calls branch April 30, 2020 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants