diff --git a/Variables.playground/Contents.swift b/Variables.playground/Contents.swift index dbc0d4f..357dcb1 100644 --- a/Variables.playground/Contents.swift +++ b/Variables.playground/Contents.swift @@ -4,9 +4,9 @@ print(favoriteCharacter) favoriteCharacter = "Tyrion Lannister" print(favoriteCharacter) -favoriteCharacter = 76 +favoriteCharacter = 76 // you can not change the type only the value due to type safety let ultimateFavoriteCharacter = "Arya Stark" print(ultimateFavoriteCharacter) -ultimateFavoriteCharacter = "Daenerys Targaryen" +ultimateFavoriteCharacter = "Daenerys Targaryen" // you can not change the value of the constant. Constants are not mutable. If you want to change value you need to change to a variable.