Skip to content

Commit a33679f

Browse files
authored
fix(STYLEGUIDE.md): use list item instead of codeblock
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).
1 parent 95d99fd commit a33679f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

STYLEGUIDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,9 @@ names.select do |name|
797797
end.map { |name| name.upcase }
798798
```
799799

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

804804
* Avoid `return` where not required.
805805
<a name="avoid-return"></a><sup>[[link](#avoid-return)]</sup>
@@ -893,4 +893,4 @@ result = hash.map { |_, v| v + 1 }
893893

894894
Refactoring is even better. It's worth looking hard at any code that explicitly checks types.
895895

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

0 commit comments

Comments
 (0)