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

Fix documentation for trailing_commas #222

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

### Fixed
- Documentation for `trailing_commas`

### Changed

Expand Down
8 changes: 4 additions & 4 deletions docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ With `:dynamic` it won't modify it.

Use trailing commas in array and hash literals, and keyword arguments?

- `:always`: (default) always put a trailing comma
- `:never`: never put a trailing comma
- `true`: (default) always put a trailing comma
- `false`: never put a trailing comma

Given this code:

Expand Down Expand Up @@ -153,7 +153,7 @@ foo(
)
```

With `:always`, the formatter will change it to:
With `true`, the formatter will change it to:

```ruby
[
Expand Down Expand Up @@ -187,7 +187,7 @@ foo(
)
```

With `:never`, the formatter will change it to:
With `false`, the formatter will change it to:

```ruby
[
Expand Down