From a33679fcd8f5118d4e70369e432e5a4d25d952e7 Mon Sep 17 00:00:00 2001 From: Francis Date: Wed, 5 Oct 2022 14:28:51 -0700 Subject: [PATCH] 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). --- STYLEGUIDE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index b10d59c..4418ad9 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -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. [[link](#avoid-return)] @@ -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 \ No newline at end of file +[rubocop-guide]: https://github.com/rubocop-hq/ruby-style-guide