Skip to content

Instantly share code, notes, and snippets.

@NaiyaShah-BTC
Created April 8, 2019 10:26
Show Gist options
  • Select an option

  • Save NaiyaShah-BTC/ddba5b30ed560f912a9e5c08e512cd14 to your computer and use it in GitHub Desktop.

Select an option

Save NaiyaShah-BTC/ddba5b30ed560f912a9e5c08e512cd14 to your computer and use it in GitHub Desktop.
sample_hash = { a: 1, b: 10 }
# bad
sample_hash.merge!({ c: 20, d: 30 })
# good
sample_hash.merge!(c: 20, d: 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment