Skip to content

Commit fe136a1

Browse files
authored
Merge pull request #115 from github/francisfuzz/fix-keyword-arguments-code-block
fix(STYLEGUIDE.md): remove extra opening code block
2 parents d1266dc + 21268ee commit fe136a1

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
@@ -418,9 +418,8 @@ hsh = {
418418
[Keyword arguments](http://magazine.rubyist.net/?Ruby200SpecialEn-kwarg) are recommended but not required when a method's arguments may otherwise be opaque or non-obvious when called. Additionally, prefer them over the old "Hash as pseudo-named args" style from pre-2.0 ruby.
419419
<a name="keyword-arguments"></a><sup>[[link](#keyword-arguments)]</sup>
420420
421-
``` ruby
422-
423421
So instead of this:
422+
424423
``` ruby
425424
def remove_member(user, skip_membership_check=false)
426425
# ...
@@ -430,7 +429,8 @@ end
430429
remove_member(user, true)
431430
```
432431
433-
Do this, which is much clearer.
432+
Do this, which is much clearer:
433+
434434
``` ruby
435435
def remove_member(user, skip_membership_check: false)
436436
# ...
@@ -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)