Skip to content

Commit

Permalink
Merge pull request #5 from Nerian/patch-1
Browse files Browse the repository at this point in the history
Update README.textile
  • Loading branch information
tyler committed Jan 27, 2013
2 parents a1be722 + 0a1e1d9 commit 8994e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ There are two methods defined by this gem. binary_search and binary_index. Ther

target = 4
y = [[1,:a], [2,:b], [3,:c], [4,:d]]
puts x.binary_search { |v| target <=> v[0] }
puts y.binary_search { |v| target <=> v[0] }
#=> [4,:d]
</code>
</pre>
Expand Down

0 comments on commit 8994e82

Please sign in to comment.