File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ Comparison:
601
601
Hash#fetch, string: 3981166.5 i/s - 1.89x slower
602
602
```
603
603
604
- ##### ` Hash#dig ` vs ` Hash#[] ` vs ` Hash#fetch ` [ code] ( code/hash/dig-vs-[]-fetch.rb )
604
+ ##### ` Hash#dig ` vs ` Hash#[] ` vs ` Hash#fetch ` [ code] ( code/hash/dig-vs-[]-vs- fetch.rb )
605
605
606
606
[ Ruby 2.3 introduced ` Hash#dig ` ] ( http://ruby-doc.org/core-2.3.0/Hash.html#method-i-dig ) which is a readable
607
607
and performant option for retrieval from a nested hash, returning ` nil ` if an extraction step fails.
@@ -878,7 +878,7 @@ Comparison:
878
878
String#+: 2977282.7 i/s - 1.80x slower
879
879
```
880
880
881
- ##### ` String#match ` vs ` String#start_with? ` /` String#end_with? ` [ code (start)] ( code/string/start-string-checking-match-vs-start_with.rb ) [ code (end)] ( end-string-checking-match-vs-end_with.rb )
881
+ ##### ` String#match ` vs ` String#start_with? ` /` String#end_with? ` [ code (start)] ( code/string/start-string-checking-match-vs-start_with.rb ) [ code (end)] ( code/string/ end-string-checking-match-vs-end_with.rb)
882
882
883
883
> :warning : <br >
884
884
> Sometimes you cant replace regexp with ` start_with? ` , <br >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments