Skip to content

Instantly share code, notes, and snippets.

@smcabrera
Last active October 26, 2018 22:33
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 smcabrera/05e369711d8ca199be63255137c2e22d to your computer and use it in GitHub Desktop.
Save smcabrera/05e369711d8ca199be63255137c2e22d to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
"some string".gsub!("some", "different")
# Traceback (most recent call last):
# 1: from string.rb:3:in `<main>'
# string.rb:3:in `gsub!': can't modify frozen String (FrozenError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment