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:
601601 Hash#fetch, string: 3981166.5 i/s - 1.89x slower
602602```
603603
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 )
605605
606606[ Ruby 2.3 introduced ` Hash#dig ` ] ( http://ruby-doc.org/core-2.3.0/Hash.html#method-i-dig ) which is a readable
607607and performant option for retrieval from a nested hash, returning ` nil ` if an extraction step fails.
@@ -878,7 +878,7 @@ Comparison:
878878 String#+: 2977282.7 i/s - 1.80x slower
879879```
880880
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)
882882
883883> :warning : <br >
884884> 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