Skip to content

Instantly share code, notes, and snippets.

@thinkclay
Created November 19, 2014 22:50
Show Gist options
  • Save thinkclay/fd3e07d56a20ef621cbc to your computer and use it in GitHub Desktop.
Save thinkclay/fd3e07d56a20ef621cbc to your computer and use it in GitHub Desktop.
// Throws errors
let immutableString = "Clay is"
immutableString += " awesome"
// Works
var mutableString = "Clay is"
mutableString += " a big nerd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment