Skip to content

Commit 49ee417

Browse files
Sou.Kbbatsov
Sou.K
authored andcommitted
Remove duplicate section "pad-string-interpolation" (rubocop#568)
1 parent 39d176b commit 49ee417

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -3310,11 +3310,11 @@ resource cleanup when possible.
33103310

33113311
```Ruby
33123312
timestamp = Time.now.to_i
3313-
3313+
33143314
# bad
33153315
timestamp.is_a? Fixnum
33163316
timestamp.is_a? Bignum
3317-
3317+
33183318
# good
33193319
timestamp.is_a? Integer
33203320
```
@@ -3337,18 +3337,6 @@ resource cleanup when possible.
33373337
email_with_name = format('%s <%s>', user.name, user.email)
33383338
```
33393339

3340-
* <a name="pad-string-interpolation"></a>
3341-
With interpolated expressions, there should be no padded-spacing inside the braces.
3342-
<sup>[[link](#pad-string-interpolation)]</sup>
3343-
3344-
```Ruby
3345-
# bad
3346-
"From: #{ user.first_name }, #{ user.last_name }"
3347-
3348-
# good
3349-
"From: #{user.first_name}, #{user.last_name}"
3350-
```
3351-
33523340
* <a name="consistent-string-literals"></a>
33533341
Adopt a consistent string literal quoting style. There are two popular
33543342
styles in the Ruby community, both of which are considered good - single

0 commit comments

Comments
 (0)