Skip to content

Commit

Permalink
fix(STYLEGUIDE.md): use list item instead of codeblock
Browse files Browse the repository at this point in the history
This change updates the `Syntax` section's statement from it being in a codeblock (via indentation) to it being another list item (to stay consistent with the other style notes in the document).
  • Loading branch information
francisfuzz authored Oct 5, 2022
1 parent 95d99fd commit a33679f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions STYLEGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,9 @@ names.select do |name|
end.map { |name| name.upcase }
```

Some will argue that multiline chaining would look OK with the use of {...}, but they should
ask themselves - is this code really readable and can't the block's contents be extracted into
nifty methods?
* Some will argue that multiline chaining would look OK with the use of `{...}`,
but they should ask themselves: is this code really readable and can't the block's
contents be extracted into nifty methods?

* Avoid `return` where not required.
<a name="avoid-return"></a><sup>[[link](#avoid-return)]</sup>
Expand Down Expand Up @@ -893,4 +893,4 @@ result = hash.map { |_, v| v + 1 }
Refactoring is even better. It's worth looking hard at any code that explicitly checks types.

[rubocop-guide]: https://github.com/rubocop-hq/ruby-style-guide
[rubocop-guide]: https://github.com/rubocop-hq/ruby-style-guide

0 comments on commit a33679f

Please sign in to comment.