Skip to content

Commit f70124e

Browse files
committed
Fix markdown styles [ci skip]
1 parent d83756f commit f70124e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,12 @@ Comparison:
462462

463463
##### `Hash#fetch` with argument vs `Hash#fetch` + block [code](code/hash/fetch-vs-fetch-with-block.rb)
464464

465-
> Note that the speedup in the block version comes from avoiding repeated
466-
> construction of the argument. If the argument is a constant, number symbol or
467-
> something of that sort the argument version is actually slightly faster
465+
> Note that the speedup in the block version comes from avoiding repeated <br>
466+
> construction of the argument. If the argument is a constant, number symbol or <br>
467+
> something of that sort the argument version is actually slightly faster <br>
468468
> See also [#39 (comment)](https://github.com/JuanitoFatas/fast-ruby/issues/39#issuecomment-103989335)
469469
470+
```
470471
$ ruby -v code/hash/fetch-vs-fetch-with-block.rb
471472
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]
472473
Calculating -------------------------------------
@@ -482,6 +483,7 @@ Comparison:
482483
Hash#fetch + const: 7030600.4 i/s
483484
Hash#fetch + block: 6814826.7 i/s - 1.03x slower
484485
Hash#fetch + arg: 4752567.2 i/s - 1.48x slower
486+
```
485487

486488
##### `Hash#each_key` instead of `Hash#keys.each` [code](code/hash/keys-each-vs-each_key.rb)
487489

@@ -544,7 +546,7 @@ Comparison:
544546

545547
##### `{}#merge!(Hash)` vs `Hash#merge({})` vs `Hash#dup#merge!({})` [code](code/hash/merge-bang-vs-merge-vs-dup-merge-bang.rb)
546548

547-
> When we don't want to modify the original hash, and we want duplicates to be created
549+
> When we don't want to modify the original hash, and we want duplicates to be created <br>
548550
> See [#42](https://github.com/JuanitoFatas/fast-ruby/pull/42#issue-93502261) for more details.
549551
550552
```

0 commit comments

Comments
 (0)