Skip to content

Commit

Permalink
Merge pull request #222 from srabuini/quote_style-documentation
Browse files Browse the repository at this point in the history
Fix documentation for trailing_commas
  • Loading branch information
gingermusketeer authored Jan 21, 2020
2 parents 0a7624f + 951a36c commit f4bcca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit f4bcca0

Please sign in to comment.