Skip to content

Instantly share code, notes, and snippets.

@pdg137
Created December 20, 2013 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdg137/8062980 to your computer and use it in GitHub Desktop.
Save pdg137/8062980 to your computer and use it in GitHub Desktop.
Spot the bug
# Old version
def f(a)
return a == 1 ||
a == 2 ||
a == 3
end
# New version removing the a == 1 case
def f(a)
return
a == 2 ||
a == 3
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment