sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

DidYouMean::Levenshtein#min3

detects the minimum value out of three arguments. This method is
faster than `[a, b, c].min` and puts less GC pressure.
See https://github.com/yuki24/did_you_mean/pull/1 for a performance
benchmark.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/did_you_mean-0.10.0/lib/did_you_mean/levenshtein.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-DidYouMean--Levenshtein-min3-for-pr


# Commit to git

git add app/server/ruby/vendor/did_you_mean-0.10.0/lib/did_you_mean/levenshtein.rbgit commit -m "better docs for DidYouMean::Levenshtein#min3"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-DidYouMean--Levenshtein-min3-for-pr

hub pull-request


# Celebrate!